Re: COMObjReleaser

Claude Eisenhut <[email protected]> Wed, 9 Aug 2006 17:31:33 +0200
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <00aa01c6bbc8$e8747f40$1e00000a@lemon>
> That's fine for the case where the thread is re-used constantly.  However
in
> a 500+ thread pool with 1 or 2 users then there's a good chance a thread
> won't be re-used on a subsequent hit to the server.

Then you should

a) either explicitly call COMPtr.close() after you finished using a COM
object. This should left only RealRawCOMRef objects, but no COM objects. Is
this a Problem?

b) or wakeup the sleeping threads from time to time, to close the collected
COM objects