Re: Winforms and memory usage

Tech-Archive recommends: Speed Up your PC by fixing your registry




It sounds like you have a legitimate memory leak. You'll need to track this
down.

It also sounds like you need to run this from time to time:
http://www.jdconley.com/blog/archive/2006/05/08/fakeouttheusertothinkwedontuseanymemory.aspx

There's alot of debate about that 2nd one, and you should give it some
though before using it, but if your users are whining that it takes too much
memory, that'll shut them up... :)

--
Chris Mullins

"deerchao" <deerchao@xxxxxxxxx> wrote in message
news:1192216035.023043.168150@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm developing a WinForms application. It slowly eats up memory, one
client reported that it took 200MB or more, and finnaly crashed. I
myself noticed it's common to use up 30MB memory, but if I minimize it
(all the Forms will Hide, only a NotifyIcon is shown at the System
Notification Area), the memory usage comes down to 8MB immediately.
After that, even if I show the Forms again, it uses only 8MB memory.
Do I have another way to programmly cut down the memory usage, other
than Hide/Show all the Forms manually?

Thanks!



.


Quantcast