Hello again,
I did nice winforms 2.0 application and it's working great and customers are still happy but unfortunatelly I cannot solve one issue. The problem is that after using app for a couple of hours, gdi user handles number is rising and rising and finally process cannot allocate more objects and app crashes...
I'm not doing anything fancy, it's regular app, a few forms, a few more modal forms, a few datagridviews and a lot tablelayoutpanels where I'm adding a lot labels and textboxes.
My questions are:
- are there any "recommended-practises" concerning adding/removing regular system controls on forms at runtime (dgv/tlp)
- how to detect system handles' leaks - preferably using visual studio and a kind of free plugin (profiler?)