how to remove com object from memory
-
I use CoCreateInstance(...) to create an instance of a COM/ATL DLL that I wrote, then use obj->Release() when done with it. During development I discover the only way to remove it from memory is to reboot! Is there a better way? I cannot replace the dll when its in use. thanks -- modified at 14:08 Wednesday 29th March, 2006
-
I use CoCreateInstance(...) to create an instance of a COM/ATL DLL that I wrote, then use obj->Release() when done with it. During development I discover the only way to remove it from memory is to reboot! Is there a better way? I cannot replace the dll when its in use. thanks -- modified at 14:08 Wednesday 29th March, 2006
Call
CoFreeUnusedLibraries()
in your app to unload any DLL servers that have a refcount of 0. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ -
Call
CoFreeUnusedLibraries()
in your app to unload any DLL servers that have a refcount of 0. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ