Thinking of adding some code to your DLLs DllMain function? STOP!
Tag Archives: dll
Don’t do anything in DllMain… Please
Posted in Debugging, Software Development, Uncategorized, Windows Also tagged c++, COM, Debugging, win32 Leave a comment
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, gac, InvalidProgramException, mscoree, mscorjit, mscorwks, WinDbg Leave a comment
Static libraries are Evil
In my opinion.
Why? Well, because it’s too easy to use them as an excuse for not defining your shared library interfaces properly.
The reason this is on my mind recently is that several hundred, yes, you heard that right, several hundred DLLs have been released by my group over the last, ooh, 10 years or so. [...]
