Some question about Application Domain

T

Tony Johansson

Hi!

This is some text from book professional C# 2005.
"Application domain are an extremely useful construct if assemblies are
loaded
dynamically, and the requirement exists to unload assemblies after use.
Within the primary application domain it is not possible to get rid of
loaded assemblies. However, it is possible to end application domain where
all assemblies loaded just within the application domain are cleaned from
the memory."

The text say in one part "Within the primary application domain it is not
possible to get rid of loaded assemblies" but I mean if you stop a process
will the result as I believe be that it is removed from memory ?
I'm I correct

//Tony
 
A

Arne Vajhøj

This is some text from book professional C# 2005.
"Application domain are an extremely useful construct if assemblies are
loaded
dynamically, and the requirement exists to unload assemblies after use.
Within the primary application domain it is not possible to get rid of
loaded assemblies. However, it is possible to end application domain where
all assemblies loaded just within the application domain are cleaned from
the memory."

The text say in one part "Within the primary application domain it is not
possible to get rid of loaded assemblies" but I mean if you stop a process
will the result as I believe be that it is removed from memory ?
I'm I correct

You are correct.

But they are talking about a permanently running process.

For a long running processes it can occasionally be desirable
to unload a DLL to load a new.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top