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.

Memory leaks

Thread ID:

Created:

Updated:

Platform:

Replies:

17783 Aug 17,2004 07:01 AM Jan 24,2005 11:54 PM Windows Forms 4
loading
Tags: GridControl
Dirk Puis
Asked On August 17, 2004 07:01 AM

When I place a grid on a form and look at it with a memory profiler, weird things seem to be going on. On each MouseMove over the grid, the undisposed instance count for types like GridStyleInfoStore goes up ... and never comes down. Is this avoidable? Dirk Puis

Administrator [Syncfusion]
Replied On August 17, 2004 07:36 AM

The styles will get disposed eventually. The default GridVolatileData implementation has a collection of WeakReferences to the GridStyleInfo objects it creates. Once garbage collection collects these instances they will get disposed. (There will be a huge difference between release and debug version when they are collected). You have the option to provide your own GridVolatileData implementation. For example, the GridPerf example implements a different solution when you don''t need QueryCellStyleInfo callbacks. Attached find also a modified VirtualGrid sample that I creatd recently and uses a modified GridNonVirtualVolatileData class. Just in case you are interested in investing this option further ... In that sample QueryCellInfo is only called once for a cell. Then it gets stored in the same style cache that we used in GridNonVirtualVolatileData class and after a cell was initialized the QueryCellInfo event will not be raised again for that cell. Stefan OneTimeOnlyQueryCellInfo_140.zip

Dirk Puis
Replied On August 18, 2004 04:05 AM

ok, seems like I was looking at the wrong column in my profiler. The manual mentioned a caveat. Thanks for the help. Dirk

David Bosak
Replied On January 24, 2005 11:16 PM

I cannot get this attachment. Please give me another link. Thanks!

Administrator [Syncfusion]
Replied On January 24, 2005 11:54 PM

You can try this link. http://64.78.52.104/support/user/uploads/OneTimeOnlyQueryCellInfo_140.zip Or, if you have 3.0.1.0 installed, you can get it at: \Syncfusion\Essential Suite\3.0.1.0\Windows\Grid.Windows\Samples\Performance\OneTimeOnlyQueryCellInfo

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.

;