COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.
COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.
How do you find the unmanaged COM object that’s being referenced by a .NET object?
One of the developers who uses the .NET/COM interop DLL that I wrote recently informed me that when they used it in a certain way, they would get a fatal System.InvalidProgramException. Nasty. So I set about seeing how I could find out exactly why this was happening: here are the gory details…
To spoil the ending [...]