Its not that dangerous though, but if you have lots of ToolTips on your forms and their tips (messages) are changing dynamically then chances of your application crashing increases.
Microsoft says they fixed it long time back in .Net 2.0. But i can see its still leaking in some cases. In my case, we have a windows base UserControl and inside that a ToolTip was getting created.
Code: Select all
ToolTip newTip = new ToolTip();
newTip.SetToolTip(lblOwner, lblOwner.Text);
Code: Select all
protected override voide Dispose(bool disposing)
{
//Nalin Bhatia
newTip.RemoveAll();
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
Any suggestions are welcome.