OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: ArunKumar (akumarOMNESYSINDIA.COM)
Date: Tue Mar 12 2002 - 22:40:06 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi

    Immediately is relative and especially inside the PC.
    Something else might be happening by this relative
    time - maybe its best to avoid depending on that
    and avoid the situation that mkaes u want to do this
    in the first place ?

    arun
    ----- Original Message -----
    From: "Aashwina" <ashwina_mSRASYS.CO.IN>
    To: <DCOMDISCUSS.MICROSOFT.COM>
    Sent: Monday, March 11, 2002 11:35 AM
    Subject: CoFreeUnusedLibraries - Forcing an unload!!

    > 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-requestDISCUSS.MICROSOFT.COM
    >

    ----------------------------------------------------------------
    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-requestDISCUSS.MICROSOFT.COM