"Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
news:#AHKI#r3DHA.2296@TK2MSFTNGP11.phx.gbl...
> This article applies to remoted objects, not to local objects. A local
> object does not require activity to remain in existance.
> "Max-Ph. Blickenstorfer" <max@mbs-software.com> wrote in message
> news:Oa50D8q3DHA.1264@TK2MSFTNGP11.phx.gbl...
> > Hi Rimone,
> > After reading the various replies you've got so far. My reply would be
> best
> > described in this article:
> >
http://msdn.microsoft.com/msdnmag/issues/03/12/leasemanager/default.aspx > >
> > Acording to above article it is not enought to hold a reference to the
> > object, the object must recognize some activity. To make sure the
> connection
> > will not be marked for garbage collection you have to work with
"Leases".
> > For each created object the framework creates a lease. This lease is
> managed
> > by the frameoworks lease manager. By default an object is marked as
> inactive
> > after 5 minutes inactivity. However, you can manipulate the lease
behaving
> > and create a callback interface on your clients side. This callback
> function
> > will be called by the lease manager and your client can specify whether
> the
> > server side object can be disposed or not. In fact it would be good your
> > client side object implements IDispose, so your client can release
> resources
> > when you feel it's appropriate for it.
> >
> > Another good article covering remoting objects is in CodeMagazine
Jan/Feb
> > 2003. Even nearli a year old - it contains quite a bit content.
> >
http://www.code-magazine.com/ > >
> > Anyway, I hope the above linkes can bring some light into this behaving.
> >
> > Regards
> > Max
> >
> >
> >
> >
> > "Rimonne" <not@moreply.com> wrote in message
> > news:OHSA9Yk3DHA.1948@TK2MSFTNGP12.phx.gbl...
> > > Hi All
> > >
> > > I understand that the .net framework has garbagecollectors which run
> > > automatically and release memory.
> > >
> > > But in my application in C#, i have an object which should never be
> > > released.
> > >
> > > Can I achieve this in .NET ?
> > >
> > > An urgent response is neede, as I am struck up with my development
work
> > > here.
> > >
> > > Thanks a lot for your time.
> > >
> > > Regards.
> > >
> > >
> >
> >
>
>