| View previous topic :: View next topic |
| Author |
Message |
killer09 Guest
|
Posted: Wed Oct 29, 2003 9:42 am Post subject: TIdTCPServer and AThread.Synchorize method |
|
|
Can someone tell me how to use Synchronize method within OnExecute event. I
want to access some component on a main form and I read that you cannot
access it directly from OnExecute event safely. But when I call Synchronize
method where I access main form's component I get Access violation error.
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Wed Oct 29, 2003 10:26 am Post subject: Re: TIdTCPServer and AThread.Synchorize method |
|
|
"killer09" <killer09 (AT) email (DOT) si> wrote
| Quote: | Can someone tell me how to use Synchronize method within OnExecute event.
I
want to access some component on a main form and I read that you cannot
access it directly from OnExecute event safely. But when I call
Synchronize
method where I access main form's component I get Access violation error.
|
You should post some code. I'm no great fan of 'synchronize' but it should
work OK here.
Rgds,
Martin
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Oct 29, 2003 6:33 pm Post subject: Re: TIdTCPServer and AThread.Synchorize method |
|
|
"killer09" <killer09 (AT) email (DOT) si> wrote
| Quote: | But when I call Synchronize method where I access
main form's component I get Access violation error.
|
Please show your actual code.
Gambit
|
|
| Back to top |
|
 |
|