|
-
May 23rd, 2005, 08:06 AM
#1
Thread Starter
Addicted Member
Remoting objects lifetime?
Hi,
I created a singleton object using .NET Remoting. The object is created in a .NET remoting server and the same instance is marshaled to the client when the client creates a new object of it. In constructor (public Sub New()) I have writeLog() function, that function create txt file and write time when object created. I implement IDisposable interface where I again call writeLog() function to write time when object destroyed.
When object is created I see line in txt file with time of creation, but I can't get time when object destoyes. I think that by default lifetime of singleton server activated objects is 5min. after there is no calls from clients and then garbage collector delete objects from memory. Or in other words how to get time when object destroyes?
regard j
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|