Properly dispose a GridControl ?

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; }

2 Replies

AD Administrator Syncfusion Team February 29, 2004 11:35 PM UTC

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


KO Kyui Oh 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.

Loader.
Up arrow icon