Hi,

Please see original post to this thread by Lloyd Thomas on my 23rd (source
code located at http://pastebin.com/m5e3de129)

This code can be reflected or altered in lines 223 onwards :). I do not
think it is necessary to exit the thread, but simply reconnect to the port
again (off course, the thread could be restarted if required...really up to
Lloyd to see if he can use it and solve his problem)

Cheers!

On Wed, May 27, 2009 at 4:26 PM, Markku Uttula
<[email protected]>wrote:

> 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
>
------------------------------------------------------------------------------
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

Reply via email to