memory leak on a blank form with 1 button?

  • Thread starter Thread starter Benny Raymond
  • Start date Start date
B

Benny Raymond

I did a test today and made a form with a button on it, it doesn't do
anything but just open up and sit there. If I move the form around the
desktop it's memory consumption slowly climbs. I did the same thing
with C# to see if it would happen and it does - What the heck is going
on? How do I keep these memory leaks from happening? I didn't even
code anything and the forms are leaking memory.

~Benny
 
Benny said:
I did a test today and made a form with a button on it, it doesn't do
anything but just open up and sit there. If I move the form around the
desktop it's memory consumption slowly climbs. I did the same thing
with C# to see if it would happen and it does - What the heck is going
on? How do I keep these memory leaks from happening? I didn't even
code anything and the forms are leaking memory.

~Benny

Whoa! I tried it to....all I did was have a form and a button, moved it
around screen and the memory consumption went up and up and up! Then I
minimized it, brought it back up and the memory was like half of what it
started at....sure would like to hear some info on this too...

Carl
 
Carl Schell said:
Whoa! I tried it to....all I did was have a form and a button, moved it
around screen and the memory consumption went up and up and up! Then I
minimized it, brought it back up and the memory was like half of what it
started at....sure would like to hear some info on this too...

The latter phenomenon is due to a call to 'SetProcessWorkingSetSize' that is
done when minimizing the form. Make sure you monitor the virtual memory
consumption too.
 

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

Similar Threads


Back
Top