Miscellaneous DebrisAvner Kashtan's Frustrations and ExultationsWrong constructor called in COM+: sneaky, sneaky bug- August 30, 2007 Here's another nasty one that tried to bite me today. Let's say I have the following classes: public class COMPlusClass : ServicedComponent public COMPlusClass() Default initialization. public COMPlusClass (string data) Parameterized initialization. public class Client public Client() ...http://weblogs.asp.net/avnerk/archive/2007/08/30/wrong-constructor-called-in-com-sneaky-sn... Unmanaged deployment is a true DLL Hell- August 29, 2007 By a staggering margin, most of my problems integrating C++CLI code into my C-based project has been deployment problems. Without fail, every integration or test deployment will be plagued with inexplicable problems. I'll try to list a few, with their causes and (probable) solutions: 1) .NET assemblies are usually very loose in what they'll bind to. If I compiled A.DLL against B.DLL version 1.0.0.0, it will still work if it can only find B.DLL version 1.2.0.0. I don't have to rebuild and...http://weblogs.asp.net/avnerk/archive/2007/08/30/unmanaged-deployment-is-a-true-dll-hell.a... More Tales from the Unmanaged Side - System.String -> char- August 28, 2007 Today, I had a very tight deadline to achieve a very simple task: pass a managed .NET string to an API function that expects a null-terminated char. Trivial, you would expect Unfortunately it wasn't. My first though was to do the pinning trick that I mentioned in my last post, but in this case I needed my resulting char to be null-terminated. Second thought was to go to the System.Runtime.InteropServices.Marshal class and see what it had for me. I found two contenders: 1)...http://weblogs.asp.net/avnerk/archive/2007/08/28/more-tales-from-the-unmanaged-side-system... |