Am 17.04.2013 02:11 schrieb "leledumbo" :
> > One can argue however that the following should be valid as well (AFAIK
it
> > is not currently):
>
> Yes, this is my original question. Let me rephrase:
>
> Having this declaration:
>
> type
> generic TType1 = class end;
>
> Why the following is not
> This must only work if you write "generic TType2 =...". Otherwise this is
a bug.
The code should have it, I missed it when copypaste-ing.
> One can argue however that the following should be valid as well (AFAIK it
> is not currently):
Yes, this is my original question. Let me rephrase:
Havi
Thanks! exInvalidOp exception mask solved problem. But I don't understand.
Same error I had in fpGUI project. fpGUI interface doesn't use GTK, QT etc,
it drawing over pure X11 so how it is possible that application catch GTK
errors?
___
fpc-pascal maillis
On Tue, 16 Apr 2013, Krzysztof wrote:
Hi,
I have strange issue. Simple mpg123 player which work fine on LCL project, on
console application throw floating error in line "mh_e := mpg123_read(mh,
@outbuf[0], buffer_size, done);"
Here you can download demo:
http://ubuntuone.com/34XmBk7Lr2yCliPP
El 16/04/2013 21:23, Krzysztof escribió:
Hi,
I have strange issue. Simple mpg123 player which work fine on LCL
project, on console application throw floating error in line "mh_e :=
mpg123_read(mh, @outbuf[0], buffer_size, done);"
Hello,
I'm not sure but I think that the GTK2 Widgetset disable
You can get some hints from minilib
https://sourceforge.net/p/minilib
"socket" directory
On Tue, Apr 16, 2013 at 2:53 PM, Xiangrong Fang wrote:
> using the socket like read/write file is very convenient. This is the
> first time I use fpc to write socket program, it is much easier than I used
Hi,
I have strange issue. Simple mpg123 player which work fine on LCL project,
on console application throw floating error in line "mh_e :=
mpg123_read(mh, @outbuf[0], buffer_size, done);"
Here you can download demo:
http://ubuntuone.com/34XmBk7Lr2yCliPPTxcYI1
You find two projects in zip file.
Am 16.04.2013 16:56 schrieb "leledumbo" :
>
> This code:
>
> {$mode objfpc}{$H+}
>
> type
> generic TType1 = class end;
> generic TType2 = specialize TType1;
>
> begin
> end.
>
> fails:
> x.pas(5,42) Error: Identifier not found "A"
> x.pas(5,42) Error: Type identifier expected
> x.pas(5,50) Er
Sorry, I miss something:
generic TType2 = ...
:">
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Correct-way-for-partial-generic-specialization-tp5714160p5714162.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
__
Al 16/04/13 12:20, En/na Michael Schnell ha escrit:
> On 04/16/2013 11:26 AM, Xiangrong Fang wrote:
>> How can I set the connection and read/write timeout when using socket
>> in free pascal?
> I seem to remember that synapse can do this.
Only in svn and it does it this way
if FConnectionTimeout
This code:
{$mode objfpc}{$H+}
type
generic TType1 = class end;
generic TType2 = specialize TType1;
begin
end.
fails:
x.pas(5,42) Error: Identifier not found "A"
x.pas(5,42) Error: Type identifier expected
x.pas(5,50) Error: Illegal expression
x.pas(7,1) Error: This type can't be a generic
using the socket like read/write file is very convenient. This is the
first time I use fpc to write socket program, it is much easier than I used
Indy or ICS in Delphi several years ago.
I hope to "modernize" or make it more stable, instead of deprecate it. Of
course deprecate Connect and use fp
On 16 Apr 2013, at 12:13, Marco van de Voort wrote:
In our previous episode, Jonas Maebe said:
As far as I can see, all errors are returned via inoutres/IOResult in
the same way as happens with disk-based IO.
Yes. An attempt is made to map some of the errors to I/O. Anyway, if
sb
wants to
On 16/04/13 11:26, Xiangrong Fang wrote:
Hi there,
How can I set the connection and read/write timeout when using socket
in free pascal? I like the way it works now (blocking, NOT async),
but the timeout is a bit too long.
BTW, I hope the way to control timeout is withing the program and
p
Michael Schnell wrote:
On 04/16/2013 11:26 AM, Xiangrong Fang wrote:
How can I set the connection and read/write timeout when using socket
in free pascal?
I seem to remember that synapse can do this.
Otherwise for non-standard protocols use fpconnect(), fpselect() etc.
--
Mark Morgan Lloyd
m
On 04/16/2013 11:26 AM, Xiangrong Fang wrote:
How can I set the connection and read/write timeout when using socket
in free pascal?
I seem to remember that synapse can do this.
-Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http:
In our previous episode, Jonas Maebe said:
> >> Function Connect(Sock:longint;const addr:TInetSockAddr;var
> >> SockIn,SockOut:text):Boolean; deprecated;
> >
> > It was deprecated for two reasons:
> >
> > 1. the format, returntype and parameter typing is at 1.0.x level and
> > was
> > never updat
On 16 Apr 2013, at 11:53, Marco van de Voort wrote:
In our previous episode, Xiangrong Fang said:
I am trying to write a tcp client (redis) in free pascal, and found
this
function marked as deprecated:
Function Connect(Sock:longint;const addr:TInetSockAddr;var
SockIn,SockOut:text):Boolean;
In our previous episode, Victor Campillo said:
>
> I think that Connect was replaced by fpconnect that is more cross
> platform, so you should use fpconnect instead of Connect.
> The same happens with the other sockets functions like Accept, Bind,
> etc. You should use fpaccept, fpbind, etc.
>
Yes, I read the source code and found that fpconnect + socktotext =
connect, but just don't know why combining them together is a bad idea :-)
thanks
2013/4/16 Victor Campillo
> On 16/04/13 11:12, Xiangrong Fang wrote:
>
> Hi All,
>
> I am trying to write a tcp client (redis) in free pascal,
In our previous episode, Xiangrong Fang said:
> I am trying to write a tcp client (redis) in free pascal, and found this
> function marked as deprecated:
>
> Function Connect(Sock:longint;const addr:TInetSockAddr;var
> SockIn,SockOut:text):Boolean; deprecated;
It was deprecated for two reasons:
On 16/04/13 11:12, Xiangrong Fang wrote:
Hi All,
I am trying to write a tcp client (redis) in free pascal, and found
this function marked as deprecated:
Function Connect(Sock:longint;const addr:TInetSockAddr;var
SockIn,SockOut:text):Boolean; deprecated;
My question is, why it is deprecated
Hi there,
How can I set the connection and read/write timeout when using socket in
free pascal? I like the way it works now (blocking, NOT async), but the
timeout is a bit too long.
BTW, I hope the way to control timeout is withing the program and platform
independent (instead of, e.g. set sysct
Hi All,
I am trying to write a tcp client (redis) in free pascal, and found this
function marked as deprecated:
Function Connect(Sock:longint;const addr:TInetSockAddr;var
SockIn,SockOut:text):Boolean; deprecated;
My question is, why it is deprecated, or, what is the replacement for this
function
Am 16.04.2013 09:57, schrieb Anthony Walter:
I just wanted to get some opinions on this as to whether this is a
bug. Generics in 2.7.x trunk allows units which use a generic class
defined in another unit can access protected members.
Example:
unit A;
type
TFoo = class
protected
Bar:
I just wanted to get some opinions on this as to whether this is a bug.
Generics in 2.7.x trunk allows units which use a generic class defined in
another unit can access protected members.
Example:
unit A;
type
TFoo = class
protected
Bar: T;
end;
<-- snip to next unit -->
unit B;
us
26 matches
Mail list logo