keey my remote object always alive

  • Thread starter Thread starter Daylor
  • Start date Start date
D

Daylor

hi.
i have application with 2 appdomains.
i want keep my remote object always alive.

how can i do that ?


have a nice day.
 
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/default.asp?url=/library/en-us/cpref/html/
frlrfsystemmarshalbyrefobjectclassinitializelifetimeservicetopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemruntimeremotinglifetimeileaseclasstopic.asp

Vladimir [VB.Net team]


--------------------
| From: "Daylor" <[email protected]>
| 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: <[email protected]>
| 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: (e-mail address removed)
| 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!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!newsfeed.fjserv.net!newshosting.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.
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top