COM objects that don’t have the expected lifetime can cause chaos when combined with .NETs garbage collection system.
Tag Archives: mscorwks
Getting IUnknown from __ComObject
How do you find the unmanaged COM object that’s being referenced by a .NET object?
Troubleshooting an InvalidProgramException
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 [...]
Posted in .NET, Software Development, WinDbg, Windows Also tagged .local, .NET, dll, gac, InvalidProgramException, mscoree, mscorjit, WinDbg Leave a comment
