By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 1,586 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

How to create 2nd AppDomain?

P: n/a
JJ
Can some one please explain me what do I need for creating a 2nd
AppDomain. I've been reading the .NET framework help and googling
around for examples, but don't really understand how the AppDomain
works.

I have a class MainForm, which is the mainprogram. The MainForm uses a
class RemotingServer which handles my remoting stuff. Now, I need to
put the RemotingServer to the a 2nd AppDomain, so that I can stop and
restart the remoting server without closing the whole serverprogram.
How do I do that? Do I need to compile the RemotingServer class into a
dll and use that somehow or...? How do I "start" and "stop" the 2nd
AppDomain. Please, can you give me a basic example how to create and
use a 2nd AppDomain with C#.

Also, I need to receive events from the 2nd AppDomain to my MainForm.
Is that possible?

I'd really appreciate any help.

Thank you.
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This faq explains much of what you need to know about appdomains.
http://www.gotdotnet.com/team/clr/AppdomainFAQ.aspx

Your questions about servers are not really appdomain questions.

"JJ" <ko******@st.jyu.fi> wrote in message
news:c6**************************@posting.google.c om...
Can some one please explain me what do I need for creating a 2nd
AppDomain. I've been reading the .NET framework help and googling
around for examples, but don't really understand how the AppDomain
works.

I have a class MainForm, which is the mainprogram. The MainForm uses a
class RemotingServer which handles my remoting stuff. Now, I need to
put the RemotingServer to the a 2nd AppDomain, so that I can stop and
restart the remoting server without closing the whole serverprogram.
How do I do that? Do I need to compile the RemotingServer class into a
dll and use that somehow or...? How do I "start" and "stop" the 2nd
AppDomain. Please, can you give me a basic example how to create and
use a 2nd AppDomain with C#.

Also, I need to receive events from the 2nd AppDomain to my MainForm.
Is that possible?

I'd really appreciate any help.

Thank you.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.