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 

Application-ProcessMessages called from automation

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





PostPosted: Wed Oct 18, 2006 9:24 pm    Post subject: Application-ProcessMessages called from automation Reply with quote



Hi,

I've got a class auto-generated by wizard to handle call from external
script.
My class is son of CComSingleThreadModel.

All works fine when I don't use Application->ProcessMessages in my
code:

Here's exactly what's happend:
* I call a method of my object from an external program
* My method is called and make some operations
* My method reply the answer to calller

If another external program call the same method during this time, it
is locked until end of previous command and then, the call is started..

So everything works fine and everything is well synchronized.


BUT

If my method call Application->ProcessMessages(), the second process
starts immediately and the first is locked !

I don't know how to ensure that just one method is call, and that the
first method started is well finished.

Any idea ?

Best regards
pierre
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language) 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.