473,408 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

what is an AppDomain?

Hi,
I'm trying to understand why one would use an AppDomain...could anyone
explain?
Thanks.
Craig
Dec 12 '05 #1
5 4148
> I'm trying to understand why one would use an AppDomain...could anyone
explain?


One common reason is that they are more light weight than separate
processes, but still provide isolation. You can read more about application
domains here

http://msdn.microsoft.com/library/en...iondomains.asp
Mattias

Dec 12 '05 #2
hi Mattias

I kinda understand how AppDomains work, just don't understand really why one
would use them. It's kinda like processes within a process in a way right?
Maybe if you could give me real life example of an application of AppDomain,
it would really help me understand where I could use it.

Much appreciated.
Thank you.
Regards,
Craig
"Mattias Sjögren" <Ma***********@discussions.microsoft.com> wrote in message
news:69**********************************@microsof t.com...
I'm trying to understand why one would use an AppDomain...could anyone
explain?


One common reason is that they are more light weight than separate
processes, but still provide isolation. You can read more about
application
domains here

http://msdn.microsoft.com/library/en...iondomains.asp
Mattias

Dec 13 '05 #3
scan the web for "plugins" and ".net". The "better" articles will tell you
what this is used for.

(see:
http://www.devsource.com/article2/0,1759,1790388,00.asp

http://www.developerfusion.co.uk/show/4371/

http://www.codeproject.com/dotnet/Pl...erClassBrk.asp

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

http://msdn.microsoft.com/library/de...rp05162002.asp

)
Christian

"Craig" <ac********@hotmail.com> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...
hi Mattias

I kinda understand how AppDomains work, just don't understand really why
one
would use them. It's kinda like processes within a process in a way right?
Maybe if you could give me real life example of an application of
AppDomain,
it would really help me understand where I could use it.

Much appreciated.
Thank you.
Regards,
Craig
"Mattias Sjögren" <Ma***********@discussions.microsoft.com> wrote in
message
news:69**********************************@microsof t.com...
I'm trying to understand why one would use an AppDomain...could anyone
explain?


One common reason is that they are more light weight than separate
processes, but still provide isolation. You can read more about
application
domains here

http://msdn.microsoft.com/library/en...iondomains.asp
Mattias


Dec 13 '05 #4
Cool, so it's basically just used for plugin scenarios...I thought that
maybe what it would be used for.
Thank you so much Christian for the help, I really appreciate it.
Best regards,
Craig
"Christian Kaiser" <bc**@gmx.de> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
scan the web for "plugins" and ".net". The "better" articles will tell you
what this is used for.

(see:
http://www.devsource.com/article2/0,1759,1790388,00.asp

http://www.developerfusion.co.uk/show/4371/

http://www.codeproject.com/dotnet/Pl...erClassBrk.asp

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

http://msdn.microsoft.com/library/de...rp05162002.asp

)
Christian

"Craig" <ac********@hotmail.com> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...
hi Mattias

I kinda understand how AppDomains work, just don't understand really why
one
would use them. It's kinda like processes within a process in a way
right?
Maybe if you could give me real life example of an application of
AppDomain,
it would really help me understand where I could use it.

Much appreciated.
Thank you.
Regards,
Craig
"Mattias Sjögren" <Ma***********@discussions.microsoft.com> wrote in
message
news:69**********************************@microsof t.com...
I'm trying to understand why one would use an AppDomain...could anyone
explain?

One common reason is that they are more light weight than separate
processes, but still provide isolation. You can read more about
application
domains here

http://msdn.microsoft.com/library/en...iondomains.asp
Mattias



Dec 15 '05 #5
Well I don't know whether that's the only use for - I guess there are more
ways to use it (sandboxing other assemblies/applications, ...).

But that's what I'm working on now: a plugin manager (the n-th version, but
all I found so far don't match exactly), so it was easy to answer your
question at least with the articles I found.

And it helps learning .NET very fast/intensive to start such a task.

Christian

"Craig" <ac********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Cool, so it's basically just used for plugin scenarios...I thought that
maybe what it would be used for.
Thank you so much Christian for the help, I really appreciate it.
Best regards,
Craig
"Christian Kaiser" <bc**@gmx.de> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
scan the web for "plugins" and ".net". The "better" articles will tell
you
what this is used for.

(see:
http://www.devsource.com/article2/0,1759,1790388,00.asp

http://www.developerfusion.co.uk/show/4371/

http://www.codeproject.com/dotnet/Pl...erClassBrk.asp

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

http://msdn.microsoft.com/library/de...rp05162002.asp

)
Christian

"Craig" <ac********@hotmail.com> wrote in message
news:%2*****************@TK2MSFTNGP09.phx.gbl...
hi Mattias

I kinda understand how AppDomains work, just don't understand really why
one
would use them. It's kinda like processes within a process in a way
right?
Maybe if you could give me real life example of an application of
AppDomain,
it would really help me understand where I could use it.

Much appreciated.
Thank you.
Regards,
Craig
"Mattias Sjögren" <Ma***********@discussions.microsoft.com> wrote in
message
news:69**********************************@microsof t.com...
> I'm trying to understand why one would use an AppDomain...could anyone
> explain?

One common reason is that they are more light weight than separate
processes, but still provide isolation. You can read more about
application
domains here

http://msdn.microsoft.com/library/en...iondomains.asp
Mattias



Dec 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Satinderpal Singh | last post by:
Hi All, I have an EXE, I load the DLL from that exe in a seperate AppDomain. (I have not given reference to that DLL from the EXE). Now, i call some commands of that dll from the EXE, and in...
5
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
4
by: stu_pb | last post by:
I am designing a plugin system for a window application using .NET(C# specifically). One of the requirements of the plugin system is to be able to dynamically load/unload plugins. My initial...
1
by: MatthewRoberts | last post by:
Howdy All, I am having difficulty with two-way communication across AppDomains in an attempt to dynamically script applications. Everything works as expected, except when using ByRef parameters....
4
by: Chris Lacey | last post by:
Hi, I'm currently writing a scheduling service which starts a number DotNet executables, each within a new AppDomain, every ten seconds. The guts of the code is as follows: // For each...
8
by: A. Elamiri | last post by:
Hello, I created a small app which acts as a services manager. I basically drop a DLL in a Services folder and set the frequency through the application for how often do I want the code in the...
6
by: Wal Turner | last post by:
Hi there. There are various snippets on forums regarding issues with AppDomain.Unload and how it just doesnt work. Fortunately, I got it working with the base case, after much fiddling. Consider...
12
by: John | last post by:
I have a AppDomain ID, how do I get the instance of the AppDomain Object? Please advice. Thanks in advance. John
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
1
by: Bill Woodruff | last post by:
Visual Studio 2005, .NET FrameWork 2.0, C#, WinForms Application Hi, I've read the recent posts by and to 'Thunderbird' (and learned a lot, thanks, from the usual masters Skeet and Paladino,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.