E
Erdem ALKILIÇGIL
Hello all,
i have a memory leakage problem..
Program has two forms. one of the form(mainform) the other one is
(contentform). when user clicks on the mainform contentform is opened and
shows an htmlpage..
contentform has a button to close it.
I am using Opennetcf.org's htmlviewer..
I am disposing the form by contentform.Close()
also using
{
viewer.Clear();
if (disposing)
foreach(Control c in Controls)
c.Dispose();
GC.Collect();
base.Dispose(disposing);
}
protected override void OnClosed(EventArgs e)
{
Dispose();
base.OnClosed(e);
}
Where am i doing wrong?
i have a memory leakage problem..
Program has two forms. one of the form(mainform) the other one is
(contentform). when user clicks on the mainform contentform is opened and
shows an htmlpage..
contentform has a button to close it.
I am using Opennetcf.org's htmlviewer..
I am disposing the form by contentform.Close()
also using
{
viewer.Clear();
if (disposing)
foreach(Control c in Controls)
c.Dispose();
GC.Collect();
base.Dispose(disposing);
}
protected override void OnClosed(EventArgs e)
{
Dispose();
base.OnClosed(e);
}
Where am i doing wrong?