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 

Threading Problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL)
View previous topic :: View next topic  
Author Message
Rowman
Guest





PostPosted: Tue Feb 13, 2007 9:11 am    Post subject: Threading Problem Reply with quote



Hi,

I've been trying to create a thread that accesses a particular form
within the project. This thread works fine until I attempt to update
any component on the form such as a label and a progress bar.


The thread ussually executes if there is no call on an object on the
form. However the moment the thread attemtps to change an object on
the form (TLabel in this case) the thread pauses, until main is idle.


Now I'm not 100% why this is happening or how to solve the problem.
But have come across Single Apartment Threading term. Now I am not
sure if I am way off the mark here. But it seems like only one thread
can access the vcl objects at a time. So I saw something about free
threading model. Can someone please let me know if I'm off course
with
regards to the solution


And also help me out with the problem, please?


MANY THANKS
Rowan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL) 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.