You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Currently, IClassFactory::LockServer is currently unimplemented for all our generated class factories. This should be implemented even for in-process servers.
It's primary purpose is to ensure that the server DLL is not unloaded prematurely, while clients still hold references to objects from the DLL. This usually occurs when clients call CoFreeUnusedLibraries
As it stands now, this premature unloading will never happen, as we do not expose DllCanUnloadNow for our in-process DLLs, meaning our DLL can only be unloaded when the client calls CoUninitialize. (this behaviour is stated here)
However, implementing this is crucial as it will allow developers to be efficient with memory usage.