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 programmaticall y
loading/unloading assemblies in them.
Question:
What are some scenarios where I'd want to...
1 - programmaticall y 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! 8 1688
"Fred Mertz" <A@B.COMwrote in message
news:OR******** ********@TK2MSF TNGP05.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 programmaticall y
loading/unloading assemblies in them.
Question:
What are some scenarios where I'd want to...
1 - programmaticall y 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
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******** ********@TK2MSF TNGP05.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 programmaticall y
loading/unloading assemblies in them.
Question:
What are some scenarios where I'd want to...
1 - programmaticall y 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!
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...
"Fred Mertz" <A@B.COMwrote in message
news:em******** ******@TK2MSFTN GP03.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>
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 programmaticall y
loading/unloading assemblies in them.
Question:
What are some scenarios where I'd want to...
1 - programmaticall y 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
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 programmaticall y 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).
"Fred Mertz" <A@B.COMwrote in message
news:uU******** ******@TK2MSFTN GP05.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 programmaticall y 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?
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
then...
asks the user for a list of .net DLLs.
the app then copies a these assemblies to a cache folder along with my
RemotingClient app. Once copies i config a AppDomain setup and create a new
|
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, but I've just started playing
around with separate AppDomains and I'm finding that I'm not having problems
where I expected I would, so maybe someone can help me understand a bit
better.
I've read that objects instantiated in separate AppDomains...
|
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 will be used concurrently by multiple users.
We have a static object (which as you well know is only static per
AppDomain), -I think I've just figured out the answer to my question, but
perhaps some confirmation wouldn't go amiss-
|
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 memory
management and connection pooling constructs) as static variables which were
intended to scoped to the process.
2. Managed C++ assemblies (.NET 1.1) that wrap the unmanaged DLLs as nice
neat classes with managed interfaces.
|
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 have a directory structure like this:
MyApp
\AddIns
\AddIn1
\AddIn2
| |
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 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?
|
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 GetNumber(), and a global variable. The DllImport and getting and setting the numbers are fine.
The problem comes when I make the calls to the libraries from separate AppDomains. Calling SetNumber with 3 different values across 3 different...
|
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 responsed in the remoting
group after a week, so I'm throwing a little wider net this time.
I have a desktop app (FFx 2.0) developed with Studio 05 that loads
assemblies in a separate AppDomains from the primary UI. I'd like to be
able to hook up...
|
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 - ~\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscoree.tlb
using mscoree;
using System.Runtime.InteropServices;
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |