Neville Cox

Neville Cox

  • NA
  • 1
  • 0

Plugin that uses COM+

Jan 31 2008 11:09 AM
Hi,

I've written a COM+ server in C# (VS 2005) which I can successfully use in both delphi and c# windows applications.  However, I also have a c# windows application which has a plugin architecture whereby it creates a separate application domain in which the plugins are loaded and unloaded.  The problem is, if one of the plugins uses the COM Server, although everything works fine, including the unloading and loading of the plugins, when I close the application I get and "Attempted to read or write protected memory" error during the OleUninitialize stage.  The COM Server has been loaded and registered using regsvcs and regasm, and installed in to the GAC.  The problem exists when using both early and late binding.  Viewing the names of all the assemblies held in the separate application domain created by the program I can see the COM Server listed.

Hope this is enough information.

Any help would be appreciated.

Many thanks.