Home All Groups Group Topic Archive Search About

Remoting: Problem due to inactivity

Author
13 Jul 2006 4:40 AM
Nitin M
Hi All,

I have posted in the microsoft.public.dotnet.framework.remoting group but
have no response yet.
Hence reposting here.

Hi,

I have a remoted singleton hosted in an NT service. The singleton's
InitializeLifetimeService method has been overridden to return null. I "am
able" to access the object even after days of inactivity.

This singleton holds a hashtable with references to custom objects. When I
try to retrieve one of these objects from the hashtable (by calling a remote
method on the singleton) after about 4-5 days of inactivity I get a null
reference. This custom class does not derive from MarshalByRefObject either.
Why is this happening? Are the objects in the hashtable getting garbage
collected due to some reason?

Can anybody help me out with this?

Thanks,
Nitin

AddThis Social Bookmark Button