Distributed garbage collector controls life times for remote objects. To
make your objects always alive you can override InitializeLifetimeService
and just return Nothing from it.
If you want to do more fine tuned lifetime controll you can find some info
here:
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemmarshalbyrefobjectclassinitializelifeti meservicetopic.asp
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemruntimeremotinglifetimeileaseclasstopic .asp
Vladimir [VB.Net team]
--------------------
| From: "Daylor" <Da****@netvision.net.il>
| Newsgroups: microsoft.public.dotnet.languages.vb
| Subject: keey my remote object always alive
| Date: Tue, 30 Sep 2003 17:00:34 +0200
| Organization: NetVision InterNetNews site
| Lines: 10
| Message-ID: <bl**********@news2.netvision.net.il>
| NNTP-Posting-Host: dsl217-132-50-134.bb.netvision.net.il
| X-Trace: news2.netvision.net.il 1064930510 8121 217.132.50.134 (30 Sep
2003 14:01:50 GMT)
| X-Complaints-To:
us****@netvision.net.il
| NNTP-Posting-Date: Tue, 30 Sep 2003 14:01:50 +0000 (UTC)
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!newsfeed.fjserv.net!newshost ing.com!news-xfer1.atl.new
shosting.com!209.98.13.50.MISMATCH!phobos.visi.com !news-out.visi.com!petbe.v
isi.com!ash.uu.net!news2.netvision.net.il!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:142551
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| hi.
| i have application with 2 appdomains.
| i want keep my remote object always alive.
|
| how can i do that ?
|
|
| have a nice day.
|
|
|