When you are done with the object, you can pass the object to the static
ReleaseComObject method on the Marshal class, and it will release the
references to the COM object.
I don't quite understand the issue. Why would your program not be able
to run a second time because an object hasn't been released? Are you
limiting the number of objects that are produced to one and it is getting
hung up on that?
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Mark said:
And that what I am doing.
But still I cannot run my program second time because the COM has not been released
while COM+ console shows zeros for Objects and Activated.
When I shotdown the COM wrapper then the console shows empty columns and