GDI object leak in forms

  • Thread starter Thread starter Jamie
  • Start date Start date
J

Jamie

I am using .net 1.1 SP1
Every time I open a new form then close it my application gains 2 GDI
object.

Apparently it is caused by a smallIcon field which is not disposed correctly

Can some tell me how to get round this problem in c# ?
 
Jamie said:
I am using .net 1.1 SP1
Every time I open a new form then close it my application gains 2 GDI
object.

Apparently it is caused by a smallIcon field which is not disposed correctly

Can some tell me how to get round this problem in c# ?

I can only confirm that this is a known problem:

Windows Forms Leak
<URL:http://www.jelovic.com/weblog/e118.htm>
 
Back
Top