Link to home
Start Free TrialLog in
Avatar of snoffy
snoffy

asked on

Freeing memory when closing MDI window

I have this application in VB.net, it's got a mainwindow that allows the user to do a search and when the SEARCH button is pressed the result is displayed in an MDI-child window. While watching Windows Task Manager and doing another 20 searches my application takes up over 100'000Kb of memory. Ok, it does have 20 MDI windows open with a datagrid on, so that might be fair(?).

BUT, when closing all these MDI-childwindows, according to Task Manager it doesnt release any memory at all. So if I then start to go berserk on the SEARCH button again it takes up even more memory!

It is still a very simple app, what should I do?

Regards Anders
ASKER CERTIFIED SOLUTION
Avatar of ptakja
ptakja
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of snoffy
snoffy

ASKER

That did A LOT, but not all. Doing 30 searches and closing them leaks about 7 Mb of memory.

Any thing else I could do?

//Anders