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.

GC Finalizer Thread trying to release a GDI resource

Thread ID:

Created:

Updated:

Platform:

Replies:

10478 Feb 3,2004 01:58 PM Feb 4,2004 09:40 AM Windows Forms 3
loading
Tags: GridControl
Jens Lippmann
Asked On February 3, 2004 01:58 PM

Interesting (and hard to reproduce) bug: The UI thread is using BeginUpdate and EndUpdate to fire change events as batch to the grid. While EndUpdate is called an InvalidOperationException occurres somewhere between GridControlBase::EndUpdate and NativeWindow::Callback, and the application starts to leak memory. It''s an "Object in Use" exception. Turns out that on a separate thread the Finalizer thread of the GC calls SafeNativeMethods::GdipDeleteFontFamily and gets stuck on this exception. No further GC is carried out. The app continues to work on some machines and not works on others but memory is no longer released. We checked our code and really most of the operations are within the grid so I post this here in case somebody has seen this behavior before. Thanks, Jens

Administrator [Syncfusion]
Replied On February 3, 2004 03:45 PM

What version of our grid are you using? In versions earlier than 1.6.1.8, there were threading issues that could generate such a problem. Are you making sure all calls into the grid code are being protected with grid.InvokeRequired checks?

Jens Lippmann
Replied On February 4, 2004 08:03 AM

We are using 1.6.1.0 and I''m currently checking all execution threads to make sure they check InvokeRequired. What''s the upgrade path to 1.6.1.8.? Jens >What version of our grid are you using? In versions earlier than 1.6.1.8, there were threading issues that could generate such a problem. > >Are you making sure all calls into the grid code are being protected with grid.InvokeRequired checks?

Administrator [Syncfusion]
Replied On February 4, 2004 09:40 AM

You can download 1.6.1.8 from your support home page in Direct Trac. If you have invalid resx problems after updating, you can use the tool from this kb to convert your resx files. http://www.syncfusion.com/Support/article.aspx?id=10370

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.

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.

;