G
Guest
I recently found that one of my application was leaking memory every time I closed a MDIChild form. The garbage collector never reclaimed it and my windows handles kept increasing and increasing until eventually the application crashed
After three days of looking through all of my code I found that it was the TOOLTIP component that was causing the problem
The overcome the problem I had to add the following to the CLOSING procedure in the for
tooltip1.removeal
tooltip1.dispos
The problem then went away
Out of interest I created a new application to see what happened
With the tooltip added it leaked memory (unless I did a tooltip.removeall/dispose). Without the tooltip it worked fine
Tried this in both VB 2002 and VB 2003 and both did the same
Just thought it worth posting something here in case anyone else is having the same problem as I wasted two whole days trying to find this problem and hopefully can save other people some time
Microsoft... I think this component needs looking at
Kind Regard
Simo
After three days of looking through all of my code I found that it was the TOOLTIP component that was causing the problem
The overcome the problem I had to add the following to the CLOSING procedure in the for
tooltip1.removeal
tooltip1.dispos
The problem then went away
Out of interest I created a new application to see what happened
With the tooltip added it leaked memory (unless I did a tooltip.removeall/dispose). Without the tooltip it worked fine
Tried this in both VB 2002 and VB 2003 and both did the same
Just thought it worth posting something here in case anyone else is having the same problem as I wasted two whole days trying to find this problem and hopefully can save other people some time
Microsoft... I think this component needs looking at
Kind Regard
Simo