Re: [lazarus] Threads and Forms

2007-06-11 Thread Luca Olivetti
En/na Al Boldi ha escrit: Have you found a problem with synchronize now? Yes: now it works :-D Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 _ To

Re: [lazarus] Threads and Forms

2007-06-11 Thread Alvise Nicoletti
Luca Olivetti ha scritto: En/na Al Boldi ha escrit: Have you found a problem with synchronize now? Yes: now it works :-D Bye Hi ;) Finally, was the demo uploaded ? Catch the link on the mailing list ! _ To

Re: [lazarus] Threads and Forms

2007-06-08 Thread Graeme Geldenhuys
On 07/06/07, Vincent Snijders [EMAIL PROTECTED] wrote: Maybe you can create a wiki page with nice screenshot about it, so it can be uploaded as example to the lazarus-ccr. I was going to ask if it could be added to the Lazarus examples directory, but the lazarus-ccr will suffice. -- Graeme

Re: [lazarus] Threads and Forms

2007-06-08 Thread Vincent Snijders
Graeme Geldenhuys schreef: On 07/06/07, Vincent Snijders [EMAIL PROTECTED] wrote: Maybe you can create a wiki page with nice screenshot about it, so it can be uploaded as example to the lazarus-ccr. I was going to ask if it could be added to the Lazarus examples directory, but the

Re: [lazarus] Threads and Forms

2007-06-08 Thread Graeme Geldenhuys
On 08/06/07, Vincent Snijders [EMAIL PROTECTED] wrote: That might be possible to, but having some documentation, that can be found by search engines, is a good thing too. I'll do both then... :) -- Graeme Geldenhuys General error, hit any user to continue.

Re: [lazarus] Threads and Forms

2007-06-08 Thread Luca Olivetti
En/na Burkhard Carstens ha escrit: , but if I don't use synchronize I can move the window and see the label updating, so I wonder if synchronize is really (always) needed nowadays. Yes it is. Of course, there are other ways to solve this, but you should not just ommit synchronize, especially

Re: [lazarus] Threads and Forms

2007-06-08 Thread Al Boldi
Luca Olivetti wrote: I wasn't actually interested in updating the counter, it was just a test to see if while I was sleeping ;-) the LCL became automagically thread safe :-D [*] (I still remember the shock when I wrote my first delphi 2.0 heavily multithreaded application only to discover

Re: [lazarus] Threads and Forms

2007-06-07 Thread Luca Olivetti
En/na Luca Olivetti ha escrit: En/na Lee Jenkins ha escrit: Hi all, I need to build a GUI application where a spawned thread will open a socket, receive messages and the controls on the form (TStringGride, etc) will need to be updated with values received from the socket. Should I use a

Re: [lazarus] Threads and Forms

2007-06-07 Thread Burkhard Carstens
Am Donnerstag, 7. Juni 2007 17:11 schrieb Luca Olivetti: En/na Luca Olivetti ha escrit: En/na Lee Jenkins ha escrit: Hi all, I need to build a GUI application where a spawned thread will open a socket, receive messages and the controls on the form (TStringGride, etc) will need to be

Re: [lazarus] Threads and Forms

2007-06-07 Thread Vincent Snijders
Graeme Geldenhuys schreef: On 07/06/07, Luca Olivetti [EMAIL PROTECTED] wrote: continuous polling loop. Each time I complete a successful communication, I increase a label tag and change its caption to display the counter. My thread manager demo updates two labels on the main form (as well as

Re: [lazarus] Threads and Forms

2007-06-07 Thread Graeme Geldenhuys
On 07/06/07, Luca Olivetti [EMAIL PROTECTED] wrote: continuous polling loop. Each time I complete a successful communication, I increase a label tag and change its caption to display the counter. My thread manager demo updates two labels on the main form (as well as a StringGrid). One is a

[lazarus] Threads and Forms

2007-06-05 Thread Lee Jenkins
Hi all, I need to build a GUI application where a spawned thread will open a socket, receive messages and the controls on the form (TStringGride, etc) will need to be updated with values received from the socket. Should I use a critical section for this? I remember that Delphi has a

Re: [lazarus] Threads and Forms

2007-06-05 Thread Luca Olivetti
En/na Lee Jenkins ha escrit: Hi all, I need to build a GUI application where a spawned thread will open a socket, receive messages and the controls on the form (TStringGride, etc) will need to be updated with values received from the socket. Should I use a critical section for this? I

Re: [lazarus] Threads and Forms

2007-06-05 Thread Burkhard Carstens
Am Dienstag, 5. Juni 2007 16:42 schrieb Lee Jenkins: Hi all, I need to build a GUI application where a spawned thread will open a socket, receive messages and the controls on the form (TStringGride, etc) will need to be updated with values received from the socket. Should I use a critical

Re: [lazarus] Threads and Forms

2007-06-05 Thread Graeme Geldenhuys
My Thread Manager Demo is almost complete. It draws to a grid on the main form from multiple threads. So yes it is possible with FPC/Lazarus. Graeme. On 6/5/07, Lee Jenkins [EMAIL PROTECTED] wrote: Hi all, I need to build a GUI application where a spawned thread will open a socket,

Re: [lazarus] Threads and Forms

2007-06-05 Thread Lee Jenkins
Luca Olivetti wrote: En/na Lee Jenkins ha escrit: Hi all, I need to build a GUI application where a spawned thread will open a socket, receive messages and the controls on the form (TStringGride, etc) will need to be updated with values received from the socket. Should I use a critical