We have a project in .NET 1.1 , some of the .NET methods take COM
interface reference pointer as a parameter, somehow we have to call
Marshal.Release ComObject to release the COM Object, otherwise the COM
object will never get release, Even we call gc.Collect()
But the same code compiles in .NET 2.0 works without the
Marshal.Release ComObject. (Unfortunately the project is supposed to
run on .NET 1.1.)
Is this a known problem? What is the remedy besides
Marshal.Release ComObject? (We know it is dangerous to call
Marshal.Release ComObject since we do not have total control of the
COM
interface pointer )
Thanks in advance.
John
interface reference pointer as a parameter, somehow we have to call
Marshal.Release ComObject to release the COM Object, otherwise the COM
object will never get release, Even we call gc.Collect()
But the same code compiles in .NET 2.0 works without the
Marshal.Release ComObject. (Unfortunately the project is supposed to
run on .NET 1.1.)
Is this a known problem? What is the remedy besides
Marshal.Release ComObject? (We know it is dangerous to call
Marshal.Release ComObject since we do not have total control of the
COM
interface pointer )
Thanks in advance.
John
Comment