473,605 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Appdomain

im looking for samples to load and unload dlls...
all the testing ive been doing (new at this)
the memory usage keeps going up

is there a way or a example of loading and unloading
appdomain

tia
Mike
Oct 14 '07 #1
5 1685
this is a good sample:
http://www.codeproject.com/useritems...Appdomains.asp

Regards,
Husam Al-A'araj
www.aaraj.net

"Analizer1" wrote:
im looking for samples to load and unload dlls...
all the testing ive been doing (new at this)
the memory usage keeps going up

is there a way or a example of loading and unloading
appdomain

tia
Mike
Oct 14 '07 #2
Mike,

You have posted before that memory usage is going up when you are
creating and unloading app domains. What are you using to determine that
the usage is going up? Task Manager? If so, then that's incorrect, as task
manager shows the working set for the process, and not actual memory usage.
You will have to look at the performance counters for .NET to determine
actual memory usage.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Analizer1" <an*******@yaho o.comwrote in message
news:dt******** ***********@new ssvr29.news.pro digy.net...
im looking for samples to load and unload dlls...
all the testing ive been doing (new at this)
the memory usage keeps going up

is there a way or a example of loading and unloading
appdomain

tia
Mike

Oct 14 '07 #3
maybe i dont have a clear understanding of the mem usage in Task manager....
as it keeps raising....what does this mean,
is this memory able to be reclaimed or is it locked....

Tks
Mike

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:1E******** *************** ***********@mic rosoft.com...
Mike,

You have posted before that memory usage is going up when you are
creating and unloading app domains. What are you using to determine that
the usage is going up? Task Manager? If so, then that's incorrect, as
task manager shows the working set for the process, and not actual memory
usage. You will have to look at the performance counters for .NET to
determine actual memory usage.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Analizer1" <an*******@yaho o.comwrote in message
news:dt******** ***********@new ssvr29.news.pro digy.net...
>im looking for samples to load and unload dlls...
all the testing ive been doing (new at this)
the memory usage keeps going up

is there a way or a example of loading and unloading
appdomain

tia
Mike


Oct 14 '07 #4
Mike,

Here is a good blog entry that talks about working set:

http://blogs.msdn.com/salvapatuel/ar...-explored.aspx

If you want to know how much memory .NET is consuming, then you will
have to take a look at the .NET performance counters.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"DaveP" <ve***********@ yahoo.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
maybe i dont have a clear understanding of the mem usage in Task
manager....
as it keeps raising....what does this mean,
is this memory able to be reclaimed or is it locked....

Tks
Mike

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:1E******** *************** ***********@mic rosoft.com...
>Mike,

You have posted before that memory usage is going up when you are
creating and unloading app domains. What are you using to determine that
the usage is going up? Task Manager? If so, then that's incorrect, as
task manager shows the working set for the process, and not actual memory
usage. You will have to look at the performance counters for .NET to
determine actual memory usage.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Analizer1" <an*******@yaho o.comwrote in message
news:dt******* ************@ne wssvr29.news.pr odigy.net...
>>im looking for samples to load and unload dlls...
all the testing ive been doing (new at this)
the memory usage keeps going up

is there a way or a example of loading and unloading
appdomain

tia
Mike


Oct 14 '07 #5
Thank you very much for your help
Mike

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:65******** *************** ***********@mic rosoft.com...
Mike,

Here is a good blog entry that talks about working set:

http://blogs.msdn.com/salvapatuel/ar...-explored.aspx

If you want to know how much memory .NET is consuming, then you will
have to take a look at the .NET performance counters.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"DaveP" <ve***********@ yahoo.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>maybe i dont have a clear understanding of the mem usage in Task
manager....
as it keeps raising....what does this mean,
is this memory able to be reclaimed or is it locked....

Tks
Mike

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:1E******** *************** ***********@mic rosoft.com...
>>Mike,

You have posted before that memory usage is going up when you are
creating and unloading app domains. What are you using to determine
that the usage is going up? Task Manager? If so, then that's
incorrect, as task manager shows the working set for the process, and
not actual memory usage. You will have to look at the performance
counters for .NET to determine actual memory usage.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Analizer1" <an*******@yaho o.comwrote in message
news:dt****** *************@n ewssvr29.news.p rodigy.net...
im looking for samples to load and unload dlls...
all the testing ive been doing (new at this)
the memory usage keeps going up

is there a way or a example of loading and unloading
appdomain

tia
Mike


Oct 15 '07 #6

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

Similar topics

2
380
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 the background i try to delete the DLL, it does not allows (fair enough). Now, I unload that AppDomain using AppDomain.Unload method. Now, I try to delete that DLL from the background it still does not allows, I thought the
5
15356
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 the same class/static method definition statictly linked to my EXE and when I call InvokeMember(...), even though I got the Type from the new AppDomain, it calls the static method that I am staticly linked to and not the static method in the dynamicly...
1
4103
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. The below explanation is lengthy, but well worth the read. If you can help me, I'd gladly share this code which has greatly helped my development of extensible applications.
4
2345
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 executable in the list of tasks for (int i = 0; i < this.processTasks.Length; i++) {
8
5080
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 assembly to run (scheduler). I created a seperate AppDomain here is the code: .... AppDomainSetup ads = new AppDomainSetup(); string path =
6
8188
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 this 5 line program: AppDomain domain = AppDomain.CreateDomain("MyDomain"); domain.CreateInstance("TempDLL", "TempDLL.Class1"); MessageBox.Show("try deleting file now"); //cant delete file AppDomain.Unload(domain);
1
1732
by: Andrew Ducker | last post by:
I'm trying to load an assembly into a temporary AppDomain rather than my main AppDomain, so that it can be unloaded later on. However, it's also loading into my main AppDomain at the same time. My code is: AppDomain a = AppDomain.CreateDomain("TestDomain"); a.Load("AppDomainTestAssembly"); and in the Console window I get the following when the second line executes:
12
8251
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
1
4281
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, and others) which involve AppDomains in a remoting scenario, but I think the issue I am working with .... while related ... is sufficiently different to warrant a new thread. I'm also working on a plug-in architecture it's for a WinForms based
4
5333
by: illegal.prime | last post by:
Hi all, I'm getting unexpected results when trying to preload assemblies into an AppDomain I'm creating. Upon creation of the AppDomain - I attach an AssemblyResolve to both my current AppDomain and the new AppDomain I create. I copy all the assemblies/dlls into a new directory and then try loading them all into the new AppDomain using the following: private void LoadAssembliesFromDirectory(AppDomain appDomain, string directory)
0
8418
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8071
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,...
0
8288
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 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...
0
6743
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, 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...
1
5886
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 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...
0
3912
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2438
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
1
1541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1271
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 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...

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.