com interop - COM Callable Wrapper and .NET object lifetime -


I have a C # .NET assembly that calls from the C ++ COM client when the client process explicitly calls COM If the object releases, this is the reference to CCW release, thus the .net object for garbage collection is eligible.

What if the .NET object is a stable creator that opens a log file? Is there a great solution for closing the log file without explicit requests from the client?

TIA

To close the log file after some tests that use AppDomain.ProcessExit EventHandler Seems a good option for


Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -