|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Aashwina (ashwina_m
SRASYS.CO.IN)Date: Mon Mar 11 2002 - 00:05:54 CST
Hi ,
The documentation says that COM supplies functions to reclaim memory held by
DLLs containing components. The most commonly used function is
CoFreeUnusedLibraries <cmf_a2c_3p2r.asp>. CoFreeUnusedLibraries does not
immediately release DLLs that have no active object. There is a 10-minute
delay for multithreaded apartments (MTAs) and neutral apartments (NAs). For
single-threaded apartments (STAs), there is no delay.
The 10-minute delay for CoFreeUnusedLibraries is to avoid multithread race
conditions caused by unloading a component DLL. This default delay may be
too long for many applications.
We have an MTA component that needs to be unloaded immediately? Is there a
way we can get this working in Windows 2000? Windows XP supports
CoFreeUnusedLibrariesEx(..) wherein if the delay is set to 0, DLL can be
unloaded immediately but this is not available in W2K!
Thanks in advance,
Aashwina
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]