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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDI Objects Leak

Thread ID:

Created:

Updated:

Platform:

Replies:

59438 Apr 12,2007 05:11 PM UTC Apr 12,2007 06:53 PM UTC Windows Forms 1
loading
Tags: GridControl
Francesco Donati
Asked On April 12, 2007 05:11 PM UTC

Hello,

We have found a GDI object leaks as you can replicate with the sample in attach.

It seems to linked to the use of the GridGdiPaint.Instance.DrawText in the override of the OnDrawCellDisplayText.

Please, how can we avoid the leak?

Thanks
Francesco

GDILeak.zip

haneefm [Syncfusion]
Replied On April 12, 2007 06:53 PM UTC

Hi Francesco,

You need to create a BaseStyle and assign them in QueryCellInfo to avoid GDI leak in a grid. Please refer the following KB

http://www.syncfusion.com/support/kb/694/How to improve performance when working with fonts inside the QueryCellInfo?

Best regards,
Haneef

CONFIRMATION

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.

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

;