 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
pypardo@gmail.com Guest
|
Posted: Wed Oct 18, 2006 9:24 pm Post subject: Application-ProcessMessages called from automation |
|
|
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 |
|
 |
|
|
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
|
|