Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Dec : TIdTCPServer and COM

www.cryer.info
Managed Newsgroup Archive

TIdTCPServer and COM

Subject:TIdTCPServer and COM
Posted by:"Soeren Muehlbauer" (soeren...@gmx.de)
Date:27 Dec 2005 12:14:07

Hi,

I have a TIdTCPServer and have filled out the DoExecute Routine. In
this Routine i poll with some read. On receiving a complete packet from
the client i do some work. This work includes the creation of an
Inproc-comobject. The problem is that i have to call coinitialize to
get the correct threading model. But if i call counitialize after i
have done my work with the com object the corresponding dll gets
unloaded. If i get many connections there is a permament
loading/unloading of the com dll. How can i change this? Is it allowed
to start my own loop inside of DoExecute? Whats the end-trigger?

Thanks, Soeren

Replies:

www.cryer.info
Managed Newsgroup Archive