Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Possible GDI leak Collapse All
Subject Author Date
Sublight Developer Jan 18, 2010 - 11:25 AM

Test environment:

-Windows 7 (64 bit)

-Elegant Ribbon 3.4



How I tested?

-I created empty Windows Forms project (.NET Framework 2, Visual Studio 2008)

-created empty form with button (Form1)

-created form with 4 Elegant.Ui.ComboBox controls (Form2)

-when button on Form1 is clicked I displayed Form2 (with ShowDialog() method)

-when Form2 is closed Dispose() method is called on Form1 (button event handler)





Every time I clicked button on Form1 and then closed Form2, GDI objects were increased by 4 (to be more precize, 4 more Font objects). These GDI objects were never decreased. If I displayed and closed Form2 100 times there would be 400 GDI objects.



When I replaced Elegant.Ui.ComboBox with System.Windows.Forms.ComboBox everything was OK (when I closed Form2, GDI objects were released).


 


GDI objects were monitored by GDIView application.




If you need more information then please contact me.

Sublight Developer Jan 20, 2010 - 10:07 AM

No problem.


Keep up the good work!

Technical Support Jan 20, 2010 - 6:02 AM

We found the source of the problem already. It will be fixed in the next release. Thank you again.

Technical Support Jan 18, 2010 - 1:38 PM

Thank you for reporting the problem. We will look into this and provide a solution as soon as possible.