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

php - multilevel menu with multilevel array -

c# - TypeConverter in propertygrid only converts from string, not to -

jQuery UI: Datepicker month format -