Memory usage of application increasing automatically !
I have made a simple windows GUI application in VB.NET.
There are combobox, buttons,menu and text box on my application form.
The strange thing is as I move my mouse on my application form or move the focus from one control to another using Tab, then the memory usage seen in task manager for my application goes on increasing. There is no mousemove or tab focus change handler in my code. The memory usage continuosuly keeps on increasing as long as I am moving the mouse.
Please let me know the reason for this and any solution/work around to avoid this behavior.
Looks like you experience the so called memory leak in the managed word. Usually it happens when you create new instances constantly and you keep some how reference from older (Gen2) object in your code. There is a code sample of such a behavior on the site: http://www.automatedqa.com/techpapers/net_allocation_profiler.asp
As you can see from the site the best way to nail the problem is by using a memory profiler.
Besides the one on that site there is another popular one at:
www.scitech.se/memprofiler/
Also the MS guys recommend the CLR Profiler which you can find it in the MSDN section of MS site.
However it sounds really odd that the leaks comes from mouse movement and you do not have a single mouse event attached on it.
PLease supply a code snapshot of your code, ot atleast the section of the mouse code.
Hope you found the links above helpful.