Hello:
I'm working with a .NET 2.0 WinForms application in C#.
I noticed something that I thought to be strange during the tear down of my application. In the designer generated dispose method:
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
I'm seeing a situation where it is passing in disposing = false
parameter when components
does indeed contain some items. This leads me to believe that these resources are not getting disposed correctly/released because components.Dispose();
is not getting called. Is this ever desired behavior?
Thanks.