473,382 Members | 1,786 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,382 software developers and data experts.

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 1526

"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
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
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,...
0
by: Brian Takita | last post by:
Hello, I'm getting the following error at the end of this message when trying to run the ReportManager and the ReportServer: Assembly system.data.dll security permission grant set is...
1
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
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
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
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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.