G
gerry
I have a com object that is used via an interop assembly - ie. I referenced
the com object and vs.net created the interop .dll for it.
I create one object per session when the page 1st loads and store it in the
Session. I expected that the object would be released when the Session
object was destroyed during at Session_End(). In my log I can see the
Session_End() event firing as it should after the specified idle time,
however the actual com object does not get destroyed for up to 12 hours
later. I assunme that this is due to the underlying com object only being
destroyed when the .net interop object is GC'd.
I must be missing something simple because I don't see anyway to release
these objects other than to wait for the GC to do its job. I would have
expected that the .net generated com interop object would have exposed a
Dispose method to allow for disposal of the underlying com object without
having to wait for gc.
Gerry
the com object and vs.net created the interop .dll for it.
I create one object per session when the page 1st loads and store it in the
Session. I expected that the object would be released when the Session
object was destroyed during at Session_End(). In my log I can see the
Session_End() event firing as it should after the specified idle time,
however the actual com object does not get destroyed for up to 12 hours
later. I assunme that this is due to the underlying com object only being
destroyed when the .net interop object is GC'd.
I must be missing something simple because I don't see anyway to release
these objects other than to wait for the GC to do its job. I would have
expected that the .net generated com interop object would have exposed a
Dispose method to allow for disposal of the underlying com object without
having to wait for gc.
Gerry