I wrote a simple events automation server, test OK. but when I use a thread object in automation server, then events is called by thread.something is wrong. I traced and find the process execute to fevents.ONXXX, but anything happened, no any exception. if I simply call AutomationServer.test, test call fevents.ONXXX, then everything is OK. Why?
Glad to receive any answer.
TigerII 2001/1/15
Binh L
Delphi Developer
Tue, 08 Jul 2003 01:31:16 GMT
Re:Events of DCOM
You'll need to perform marshaling to be able to make event calls from a secondary thread. See tip#4 on the tip and tricks page on my site.
have fun -- Binh Ly http://www.techvanguards.com
Quote
"TigerII" <tige...@sina.com> wrote in message
news:940teo$cf8@bornews.inprise.com...
Quote
> I wrote a simple events automation server, test OK. > but when I use a thread object in automation server, then events is called > by thread.something is wrong. I traced and find the process execute to > fevents.ONXXX, but anything happened, no any exception. if I simply call > AutomationServer.test, test call fevents.ONXXX, then everything is OK. Why?