Will this be a CPU hog:
t := Now;
while fprecv(s, @buf, buf_len, MSG_DONTWAIT) 0 do begin
if Now - t 0.1 * timeout then Break; // approx. timeout seconds
end;
Thanks
2013/4/16 Luca Olivetti l...@ventoso.org
Al 16/04/13 12:20, En/na Michael Schnell ha escrit:
On 04/16/2013 11:26
On Wednesday 17 April 2013 09:17:09 you wrote:
Will this be a CPU hog:
t := Now;
while fprecv(s, @buf, buf_len, MSG_DONTWAIT) 0 do begin
if Now - t 0.1 * timeout then Break; // approx. timeout seconds
end;
Thanks
I did not read the whole thread, but that you favorite blocking
I thought MSG_DONTWAIT is actually the flag to switch to nonblocking mode,
isn't it? As a matter of fact, the fprecv() above would get a result of -1
and a sockterror of Try Again, which is exactly the behavior of
nonblocking read.
2013/4/17 Rainer Stratmann rainerstratm...@t-online.de
On
El 16/04/2013 22:46, Krzysztof escribió:
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?
Hello,
Almost any
You're missing the again. :)
*self-headcut
Not currently. It might be a useful extension however. I'll need to test
what Delphi says about this...
OK, I'll wait
--
View this message in context:
Am 17.04.2013 11:11, schrieb leledumbo:
You're missing the again. :)
*self-headcut
Can it be that your E-Mail client misinterprets the ... (with only
one string as value) as HTML tags? Because I can't see the A I had
written to you in your quotation.
Not currently. It might be a useful
Just uploaded a new version of fpcup (automatic FPC+Lazarus svn
downloader/installer for both stable and trunk) at
https://bitbucket.org/reiniero/fpcup/downloads
I welcome feedback from FreeBSD users - the binary should work on
FreeBSD 9 x64...
For the Lazarus installation part, it picks up
On Wednesday 17 April 2013 10:22:58 you wrote:
I thought MSG_DONTWAIT is actually the flag to switch to nonblocking mode,
isn't it?
May be.
As a matter of fact, the fprecv() above would get a result of -1
and a sockterror of Try Again, which is exactly the behavior of
nonblocking read.
Yes
For connect, I wrote a unit that implements a connect timeout, see:
http://sourceforge.net/p/pascalscada/code/HEAD/tree/trunk/src/scada/sockets_w32_w64.pas#l70
or
http://sourceforge.net/p/pascalscada/code/HEAD/tree/trunk/src/scada/sockets_unix.pas#l48
If you want work in blocking mode after
Hi All,
I have an application build with Delphi7+ADO connecting
to MSSQL database, and planning to migrate to FPC+SQLdb.
It has many stored procedures which have OUT parameters
to retrieve value from database. I am trying to migrate
by using TMSSQLConnection+TSQLQuery, but still I can not
Hi all,
(FPC 2.6.2 x86, trunk x64, on Windows; found similar behaviour on Linux x64)
Busy getting DBase III memo support correct ;)
In fcl-db\src\dbase\dbf_common.pas we find this part used to e.g. find
end of file ($1A/ASCII 26) markers in a buffer with memo data: [1]
The problem is: the
11 matches
Mail list logo