Sunny
6/4/2004 9:04:00 PM
Hi,
how is the Carrier class declared? Does it inherits from
MarshalByReferenceObject, or from any other class, which inherits MBR?
Or, it is simple custom based class, marked as Serializable?
Sunny
In article <9dd925b8.0406041231.510e8fdc@posting.google.com>,
banderbe@yahoo.com says...
> I have an application which handles events raised remotely. The
> object through which the events are raised is remoted to my
> application, and it has had its InitializeLifetimeService method
> overridden to return null, so that it stays alive for the lifetime of
> the application.
>
> When these events are raised, one of the arguments to the event
> handler is an object (call it Carrier) that contains, among other
> things, a string. These events are raised thousands and thousands of
> times over the course of an hour, and during that time the .NET
> Profiler by SciTech shows that string objects are allocated but remain
> "alive", ie. reachable and thus are never garbage collected. Of
> course, the program eventually starts to buckle as it has consumed all
> available memory.
>
> If I examine the root path of these string objects they''re all
> contained in various Carrier objects that have been sent over the
> lifetime of the app.
>
> The odd thing is that the .NET Profiler does NOT indicate that the
> Carrier objects are not being garbage collected. How is this
> possible?
>
> Please help me! I do not know remoting that well and our application
> has to be restarted every day to keep it running!!!
>