G
Guest
I am trying to develop an ATL COM object together with a C# web
application that will host it. I am following the COM Interop Part 1: C#
Client Tutorial, Example 2, The C# Code Approach from the April 2004
MSDN library exactly. But the client will not release the COM object.
The COM object is being run in its own solution and under a separate
instance of Visual Studio .NET 2003. At this point the object consists
only of the constructor, FinalConstruct, and FinalRelease. No methods or
properties have been implemented on the interface.
The C# client is the corresponding code according to the tutorial and is
in the code-behind of a .NET web form. No methods or properties on the
interface.
However, after I have run the simple
MyCOMTypeLib.MyCOMManager manager = new MyCOMTypeLib.MyCOMManager()
command and have exited either the debugger or the browser independent
of Visual Studio. A reference remains on MyCOM.dll. The dll cannot be
rebuilt and it cannot be deleted. The only way I have found to clear the
reference is to reboot the computer.
Is there a way for force the DLL to be unloaded? When programming ASP,
this could be done by unloading the application with the IIS manager.
Better yet, why is this reference remaining contrary to documentation?
application that will host it. I am following the COM Interop Part 1: C#
Client Tutorial, Example 2, The C# Code Approach from the April 2004
MSDN library exactly. But the client will not release the COM object.
The COM object is being run in its own solution and under a separate
instance of Visual Studio .NET 2003. At this point the object consists
only of the constructor, FinalConstruct, and FinalRelease. No methods or
properties have been implemented on the interface.
The C# client is the corresponding code according to the tutorial and is
in the code-behind of a .NET web form. No methods or properties on the
interface.
However, after I have run the simple
MyCOMTypeLib.MyCOMManager manager = new MyCOMTypeLib.MyCOMManager()
command and have exited either the debugger or the browser independent
of Visual Studio. A reference remains on MyCOM.dll. The dll cannot be
rebuilt and it cannot be deleted. The only way I have found to clear the
reference is to reboot the computer.
Is there a way for force the DLL to be unloaded? When programming ASP,
this could be done by unloading the application with the IIS manager.
Better yet, why is this reference remaining contrary to documentation?