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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Properly dispose a GridControl ?

Thread ID:





11244 Feb 28,2004 11:45 AM UTC Feb 29,2004 11:51 PM UTC WinForms 2
Tags: GridControl
Kyui Oh
Asked On February 28, 2004 11:45 AM UTC

Hi, I seem to be running into a ''memory leak'' issue regarding the GridControl. My application creates and disposes lots of GridControls. When I run a .NET memory profiler, the Syncfusion classes are still in the managed heap and the memory usage for my application goes to 140MB+. For example, GridControl grid=null; for(;;) { grid = new GridControl(); grid.Show(); this.Controls.Add( grid ); this.Controls.Remove( grid ); grid.Dispose(); grid = null; }

Administrator [Syncfusion]
Replied On February 29, 2004 11:35 PM UTC

There appears to be a problem here. We are looking into it.

Kyui Oh
Replied On February 29, 2004 11:51 PM UTC

Looks like when adding the GridControl to the Controls collection, Syncfusion adds a hidden class called ''SizeBox''. When I remove this class from the Controls collections everything gets released from the managed heap.


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

Live Chat Icon For mobile
Live Chat Icon