GDI Objects Leak

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

1 Reply

HA haneefm Syncfusion Team 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

Loader.
Up arrow icon