Having sorted out my performance issue with interop (cheers Richard it was the Apartment model - I just wasn't doing it right!) I now have another issue, that I think may be unsolvable, but I'm hoping that one of you knows better!
What I want to do is to be able to replace the COM components my app is using while the app is still running. Now, I know this is possible by using AppDomains + Shadow Copying with .NET assemblies, and I have got this to work. However, perhaps unsurprisingly, this doesn't work with COM DLLs. I'm guessing this is because the unmanaged code is just being attached to the process rather than being loaded into the AppDomain. I've investigated using custom wrappers, that' s a complete non-starter because the wrapper doesn't seem to deal with loading the DLL, just marshalling types. If someone could put me out of my misery by at least confirming that I'm attempting the impossible then I would be most grateful! Thanks in advance, Simon Jefford ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. http://www.messagelabs.com ________________________________________________________________________