2010-05-20 09:05:01 UTC
My namespace extension using following flag to enable XP style common control.
But when the last function _Term() which is called when explorer close.
It is called in DllMain like this:
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID
if (dwReason == DLL_PROCESS_ATTACH)
if(S_OK != _Module.Init(ObjectMap, hInstance))
g_hInstAppRes = (HINSTANCE)_Module.GetResourceInstance();
else if (dwReason == DLL_PROCESS_DETACH)
return TRUE; // ok
I actually need to do some uninitialization work in Term function --
However, I found a dll loaded dynamically by my extension have already been
released. So when I call a function ReleaseXXXX() in the this dll cause a
I think the dynamicly loaded dll's reference count should big than 1, since
I have not called the FreeLibrary function.
Could anyone help me.