Out of topic: Using COM in ExitInstance

Hi everyone!

I found that if I try to use any COM objects in my ExitInstance routine
(which is called at DLL_PROCESS_DETACH event)
I CAN’T use any COM objects that I have outstanding references to! Pointers
point to nothing, garbage
That was a major trouble for me, because I used to deallocate all my data
(including some global COM objects) in
ExitInstance. I solved the problem by deallocating those data objects before
DLL_PROCESS_DETACH comes to my
DLL, but I’m very curious about what is wrong with using COM objects in
ExitInstance. Anybody has any clue?
I use ATL COM and my DLL doesn’t use MFC.

TIA,

Vladimir