We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDI leaks - fonts, bitmaps, DCs

Thread ID:





132950 Sep 29,2017 08:29 PM UTC Oct 2,2017 08:35 AM UTC WinForms 1
Tags: RibbonControlAdv
Adam Bruss
Asked On September 29, 2017 08:29 PM UTC


We have a complex Windows Forms C++/CLI application which uses syncfusion ribbon forms. We recently changed our regression test system to continually use one instance of our application for multiple tests rather than starting a new instance for every test. This has exposed catastrophic GDI leaks in our application. After several hundred "closes" and "news" in one instance of the application, the application hits the 10,000 GDI handle limit and freezes or crashes.

Our application does not directly do any work with DeviceContexts or native Fonts so we are wondering if these leaks are coming from Syncfusion code. 

Trying to reproduce the leaks in a testbed app will be challenging so I figured I'd ask a question here first. Does syncfusion use native fonts, devicecontexts or bitmaps for its operations? We are using the objects Syncfusion::Windows::Forms::Tools::ToolStripEx, Syncfusion::Windows::Forms::Tools::ToolStripPanelItem and a Syncfusion::Windows::Forms::Tools::DockingManager in the Form. We also use RibbonPanelMergeContainer and SuperToolTip.

Is there any way Syncfusion could be leaking GDI objects like bitmaps, fonts and DCs? 

Keerthana Jegannathan [Syncfusion]
Replied On October 2, 2017 08:35 AM UTC

Hi Adam, 
We are currently using BitMap in our source for rendering our controls and we suspect memory leaks in some of our controls and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
Keerthana J 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon