You are right - sorry sucked that out of my thumb as a quick indication to a
possible solution, maybe this will work:
repeat LCMD := Recvstring(1000);
if (LastError = 0) and (LCMD <> '') then //Data was received without
any issues
begin
myconverterfunc1:=...@callconv1;
myconverterfunc1(LCMD);
end
else if LastError <> ErrTimeOut then //No data was received and it was
not a timeout, so something else is wrong
break; //break and try to rebind and the continue with loop
until terminated;
Hope this gives a few ideas!
On Wed, May 27, 2009 at 3:23 PM, Markku Uttula
<[email protected]>wrote:
> Werner Hauptfleisch wrote:
> > Sorry, that will break out anyway, a rethink (untested):
>
> Umm... wouldn't that break from the while-loop whenever Lasterror is
> something other than 0, no matter how much testing you do inside the loop?
>
> --
> Markku Uttula
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public