P
Perry
Hi,
I have a problem with the memory consumption of the AppDomain.Load and unload.
For example, when i run this code, the memory usage is increasing.
MessageBox.Show(string.Format("Before: {0}",GC.GetTotalMemory(true)));
for (int i = 0; i < 100; i++)
{
AppDomain appDom = AppDomain.CreateDomain(string.Format("SubDom_{0}",i));
AppDomain.Unload( appDom );
}
MessageBox.Show(string.Format("After: {0}",GC.GetTotalMemory(true)));
What could be the problem?
Best regard,
Perry
I have a problem with the memory consumption of the AppDomain.Load and unload.
For example, when i run this code, the memory usage is increasing.
MessageBox.Show(string.Format("Before: {0}",GC.GetTotalMemory(true)));
for (int i = 0; i < 100; i++)
{
AppDomain appDom = AppDomain.CreateDomain(string.Format("SubDom_{0}",i));
AppDomain.Unload( appDom );
}
MessageBox.Show(string.Format("After: {0}",GC.GetTotalMemory(true)));
What could be the problem?
Best regard,
Perry