Werner Hauptfleisch wrote: > 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;
Does "break" set the "terminated"? As I don't know what goes on around this loop (whether terminated is a local, global, or system provided variable) I can't know :) If it does, quickly that looks like it could work. I need to say that I don't have Delphi here, so I'm only guessing - my comments are not based on any kind of testing on my behalf. -- 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
