473,480 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AppDomains and Assemblies

I'm working towards an MCTS cert and I'm having to learn a bunch of stuff
that I doubt I'd stumble across on my own. One such feature of .NET is
AppDomains; programatically creating new AppDomains and programmatically
loading/unloading assemblies in them.

Question:
What are some scenarios where I'd want to...
1 - programmatically create or destroy AppDomains
2 - load and unload assemblies in AppDomains?

Please note that I'm NOT asking *how* to do any of those things.

I'm wondering what sorts of "real world" programming problems I could solve
by doing those things. Is it primarily to conserve system resources
throughout the session of an application (i.e., load/unload on an as-needed
basis)?

Thanks!
Jul 14 '07 #1
8 1671

"Fred Mertz" <A@B.COMwrote in message
news:OR****************@TK2MSFTNGP05.phx.gbl...
I'm working towards an MCTS cert and I'm having to learn a bunch of stuff
that I doubt I'd stumble across on my own. One such feature of .NET is
AppDomains; programatically creating new AppDomains and programmatically
loading/unloading assemblies in them.

Question:
What are some scenarios where I'd want to...
1 - programmatically create or destroy AppDomains
2 - load and unload assemblies in AppDomains?

Please note that I'm NOT asking *how* to do any of those things.

I'm wondering what sorts of "real world" programming problems I could
solve by doing those things. Is it primarily to conserve system resources
throughout the session of an application (i.e., load/unload on an
as-needed basis)?
http://www.google.com/search?hl=en&q...=Google+Search

Jul 14 '07 #2
A good example is the forthcoming CLR Add-In Model:

http://blogs.msdn.com/clraddins/arch...team-blog.aspx
http://blogs.msdn.com/clraddins/arch...se-kaplan.aspx

--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
"Fred Mertz" <A@B.COMwrote in message
news:OR****************@TK2MSFTNGP05.phx.gbl...
I'm working towards an MCTS cert and I'm having to learn a bunch of stuff
that I doubt I'd stumble across on my own. One such feature of .NET is
AppDomains; programatically creating new AppDomains and programmatically
loading/unloading assemblies in them.

Question:
What are some scenarios where I'd want to...
1 - programmatically create or destroy AppDomains
2 - load and unload assemblies in AppDomains?

Please note that I'm NOT asking *how* to do any of those things.

I'm wondering what sorts of "real world" programming problems I could
solve by doing those things. Is it primarily to conserve system resources
throughout the session of an application (i.e., load/unload on an
as-needed basis)?

Thanks!

Jul 14 '07 #3
Thanks for the link. I've never heard of this site "google.com" -
fascinating how it can give 407,000 irrellevant links in, like, nanoseconds.
Oh, wait, that's not google's fault... strike that...
Jul 14 '07 #4

"Fred Mertz" <A@B.COMwrote in message
news:em**************@TK2MSFTNGP03.phx.gbl...
Thanks for the link. I've never heard of this site "google.com" -
fascinating how it can give 407,000 irrellevant links in, like,
nanoseconds. Oh, wait, that's not google's fault... strike that...
You know, you got to be a little creative and look for yourself. I can't
hold your hand.

<g>

Jul 14 '07 #5
Fred Mertz wrote:
I'm working towards an MCTS cert and I'm having to learn a bunch of stuff
that I doubt I'd stumble across on my own. One such feature of .NET is
AppDomains; programatically creating new AppDomains and programmatically
loading/unloading assemblies in them.

Question:
What are some scenarios where I'd want to...
1 - programmatically create or destroy AppDomains
2 - load and unload assemblies in AppDomains?

Please note that I'm NOT asking *how* to do any of those things.

I'm wondering what sorts of "real world" programming problems I could solve
by doing those things. Is it primarily to conserve system resources
throughout the session of an application (i.e., load/unload on an as-needed
basis)?
There are one very well known app that has that
capability: ASP.NET engine.

You will also need it if you need to create a server app that are
capable of loading and unloading plugins dynamicly.

The need to unload is usually not to save resources, but to be
able to load a new version of the same stuff.

Arne
Jul 14 '07 #6
RE:

<< I can't hold your hand.>>

Yah yah yah, I was just hoping Pamela Anderson (no, strike that- Danica
Patric) would show up to do that...

I "get" your point - google would be the go-to choice if I were needing to
know "what" an AppDomain is and how to programmatically create one and load
assemblies into it...

But my OP was specifically about some scenarios in which I'd actually want
to do such things. Perhaps I should have been a bit more specific... I've
been programming for over 14 years (granted it's all been in dBase III) and
I haven't yet come across a need to dynamically load or unload libraries.
Being that I'm quite aware that I don't know everything, I figured I'd ask
some of you who may have come across a "real world" need to do these things.

Bob (I mean Fred).

Jul 15 '07 #7

"Fred Mertz" <A@B.COMwrote in message
news:uU**************@TK2MSFTNGP05.phx.gbl...
RE:

<< I can't hold your hand.>>

Yah yah yah, I was just hoping Pamela Anderson (no, strike that- Danica
Patric) would show up to do that...
You're quite the joke-ster. But if you're looking for the woman above to be
out here on the Internet to hold you, then you may have some problems you
don't recognize. :)
>
I "get" your point - google would be the go-to choice if I were needing to
know "what" an AppDomain is and how to programmatically create one and
load assemblies into it...
Now, that I see what you're talking about, then according to what I just
read, because I got 70-536 book too, but I have been procrastinating about
getting there, I can see use for Appdomain.
>
But my OP was specifically about some scenarios in which I'd actually want
to do such things. Perhaps I should have been a bit more specific... I've
been programming for over 14 years (granted it's all been in dBase III)
and I haven't yet come across a need to dynamically load or unload
libraries. Being that I'm quite aware that I don't know everything, I
figured I'd ask some of you who may have come across a "real world" need
to do these things.
I try to get in the ballpark first as to why, and then I'll come up with my
own needs as to why I would use it. But I got to recognize why I would need
it first.

http://www.codeproject.com/dotnet/Ap...mprovement.asp

You venture to guess how I got that link?

Jul 15 '07 #8
I was simply wondering what are some real-world applications of this .NET
feature. Thus the OP... me trying to find out what some other
professionals are _actually_ using these features for.
I have been programming professionally, since 1980, and I have been
programming on the Windows platform since 1996. You may not find the real
world situation. The real world situation will be, when it comes to your
mind that you can use it, because you knew it existed.

It's been on some occasions that I have not seen a usage of feature that I
came across in a real world situation. However, I have been is some *real
world* situation that I knew that I could now implement that something that
I never saw a real usage for it.

It is what it is.

Sorry man, I can't find that golden goose for you.

Jul 15 '07 #9

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

Similar topics

5
7382
by: Sam Martin | last post by:
Hi All, I've got a problem where my application loads an assembly in the running AppDomain when it shouldn't. Ok, I've got a RemotingHost application that configs the remoting stuff and...
6
4481
by: Pete Davis | last post by:
I'm confused about what precisely the limitations are on loading plugins in separate app domains. In all my previous apps that supported plugins, I've loaded them into the same domain as the app,...
1
2537
by: billr | last post by:
hi there, I hope that someone will be able to shed some light on little old confused me. We are developing an application which will be deployed onto a Terminal Server machine. The application...
6
4082
by: Stephen Walch | last post by:
Our application environment consists of three basic layers: 1. Third-party unmanaged DLLs that were written before the CLR was invented and maintain a significant amount of information (including...
12
12758
by: Eric Renken | last post by:
I have an application that I am adding support for plug-ins and I am looking for some help on the best way to handle this. My question has to do with AppDomains and the best way to use them. I...
8
1527
by: Fred Mertz | last post by:
I'm working towards an MCTS cert and I'm having to learn a bunch of stuff that I doubt I'd stumble across on my own. One such feature of .NET is AppDomains; programatically creating new AppDomains...
0
1578
by: kayakyakr | last post by:
I'm working with a set of experiments in a large system that is using AppDomains for isolation and wants to make a call out to an umanaged dll. The test dll has two methods, SetNumber(int num) and...
3
3740
by: | last post by:
If this is simple, forgive my ignorance, but I'm coming from the CompactFramework where we don't use AppDomains. I did a fair bit of archive searching and couldn't find an answer and I got no...
0
8646
by: PRR | last post by:
Here is a code i found on "how to enumerate appdomains in a current process". The original code was posted by Thomas Scheidegger Add the following as a COM reference -...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7059
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,...
1
6758
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
5362
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3011
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.