M
Memory Issues
In an MDI app after the first internal screen is launched,
used, and then closed, it doesn't return the memory.
I have noticed that if you open the same form again the
memory stays about the same and doesn't reallocate another
10-25 megs depending on whats on the form.
Is this normal?
I get the same results with two regular forms, the first
one having a button to launch form 2, and form 2 having a
large image on it (to make the memory difference
significant) but if you watch the task manager most of the
time when you close the second form, the memory actually
goes up a little.
I also tried some tests with vb6 in the same manner as the
paragraph above and it frees up memory 99% of the time
when the second form is closed.
When using .Net I have closed, disposed, nulled the form
references, tried initializing the form variable only
inside a sub, public/private to the class level and just
about everything else I can think of and C# hold onto it
like a bull dog only occassionally releasing 2000k.
I have also tried the same procedures in VB.NET, and
J#.NET and I get exactly the same results.
Can anyone give me an idea of whats up?
One other point: I have testing excel with adding and
removing worksheets. For instance on work sheet 2 I will
add many pictures/shapes, etc.
I watch the memory in task manager and when I delete the
sheet with lots items on it the memory stays the same or
goes up a bit.
And yet I at random I tested a digital camera software app
called camedia Master [MDI app] and it release memory just
fine (I am assuming it was not written in .net).
Thank for Assistance. I am writing the C# app to run in a
citrix environment that has to support many users so the
memory has to stay low on the servers. At first I thought
it might be a citrix issue but my own W2000 Server
responds the same way.
used, and then closed, it doesn't return the memory.
I have noticed that if you open the same form again the
memory stays about the same and doesn't reallocate another
10-25 megs depending on whats on the form.
Is this normal?
I get the same results with two regular forms, the first
one having a button to launch form 2, and form 2 having a
large image on it (to make the memory difference
significant) but if you watch the task manager most of the
time when you close the second form, the memory actually
goes up a little.
I also tried some tests with vb6 in the same manner as the
paragraph above and it frees up memory 99% of the time
when the second form is closed.
When using .Net I have closed, disposed, nulled the form
references, tried initializing the form variable only
inside a sub, public/private to the class level and just
about everything else I can think of and C# hold onto it
like a bull dog only occassionally releasing 2000k.
I have also tried the same procedures in VB.NET, and
J#.NET and I get exactly the same results.
Can anyone give me an idea of whats up?
One other point: I have testing excel with adding and
removing worksheets. For instance on work sheet 2 I will
add many pictures/shapes, etc.
I watch the memory in task manager and when I delete the
sheet with lots items on it the memory stays the same or
goes up a bit.
And yet I at random I tested a digital camera software app
called camedia Master [MDI app] and it release memory just
fine (I am assuming it was not written in .net).
Thank for Assistance. I am writing the C# app to run in a
citrix environment that has to support many users so the
memory has to stay low on the servers. At first I thought
it might be a citrix issue but my own W2000 Server
responds the same way.