BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdTCPServer and AThread.Synchorize method

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
killer09
Guest





PostPosted: Wed Oct 29, 2003 9:42 am    Post subject: TIdTCPServer and AThread.Synchorize method Reply with 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.


Back to top
Martin James
Guest





PostPosted: Wed Oct 29, 2003 10:26 am    Post subject: Re: TIdTCPServer and AThread.Synchorize method Reply with quote




"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





PostPosted: Wed Oct 29, 2003 6:33 pm    Post subject: Re: TIdTCPServer and AThread.Synchorize method Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.