On Mon, 01 Feb 2016 11:21:45 +0100, Michael Schnell <[email protected]> wrote:
>On 01/31/2016 11:10 PM, Anthony Walter wrote: >> Thanks for the idea Bo. I'll put it near the top of my queue. >> >+1 > >IMHO the knowledge about the (great) thread Features of Lazarus are by >far not spread wide enough. I could not agree more! I have been programming Delphi since 1996 and only very occationally used TThread objects. So I have totally forgotten now how it was done. (I am now retired so I don't have access to my old work code anymore) > >The "lesson" should include: > > - Motivation for the usage of threads: > - - long winding calculations > - - blocking sockets and other hardware / system interface Blocking sockets is where I am now... Got some help from Remy Lebeau concerning running a TIdTcpClient object in a TThread descendant because its methods are blocking. But his solution is based on TThread and TEvent new functionality existing in Delphi XE5 but not in Delphi 2007 or FreePascal 3.0 So I am essentially stuck anyway since I would like it to be a portable solution Delphi <=> FreePascal This is anyway why I proposed the thread section here, believing that if I don't know enough to use it properly there are for shure a whole bunch others that share this predicament.... -- Bo Berglund Developer in Sweden -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
