I used TUDPBlockSocket in my program. I try to connect ethernet device on
the network. It works fine in my two PCs. But on my laptop there are some
strange.
simply code as follows (It's in a time critical thread.) :
repeat
if Terminated then Break;
if CanRead(100) then begin
recv := RecvBuffer(@fUDPBuf, 1325); // I log the time after this line
if (LastError = 0) and (recv > 1) then
begin
//
// Processing data
//
end;
end else
begin
// write to log file
end;
until False;
UDP data comes every milliseconds from the device.
I can receive data every ten milliseconds. I'm sure that the data come
faster. Because I can see the data on WireShark. But my program can read
every ten milliseconds. So data lost occurs in my program.
As I said this works some PCs, but doesn't work some PCs and laptops.
Does anyone have any idea?
P.S. : Processing data takes less then a millisecond...
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public