We use UltraDataSource as UltraGrid DataSource. There is a hidden column containing our domain object in the grid. Every time when there is a need to refresh grid with latest collection, we set the old DataSource to null and assign a new UltraDataSource to the grid. It's faster this way than refresh each row. But it seems old domain object collection was not released after refresh. This caused memory leak issue in our app, since we need to refresh our grid often.
Any suggestion on this is much appreciated.
Forget to mention that it looks like the reason why domain object didn't get released is that UltraGrid has reference to them.
Do you have the latest service release? If not, you should try that and see if it helps.
How to get the latest service release - Infragistics Community
If that does not help, we will need a sample sample project demonstrating the problem so we can check it out.
We found out it's UltraCheckEditor that caused the memory leak. We need to align checkbox in a column to the top. We use UltraCheckEditor as editor control. After we replaced with CheckEditor, everything's fine, no more memory leak.
Do you know when we should use UltraCheckEditor? Is there a way to release manually release UltraCheckEditor control?
qhbyjh said:Do you know when we should use UltraCheckEditor? Is there a way to release manually release UltraCheckEditor control?
This probably has nothing to do with the grid. If you create a control, then you are responsible for disposing of it. If you create a control at design-time and put it on the form, then the form very nicely handles this for you as a convenience. When the form is disposed, it disposes the controls in it's Controls collection.
My guess is that you were creating the UltraCheckEditor controls in code and so they were never added to the Controls collection of the form and you never disposed them.
Sorry to say this is not as you are saying. We are using 7.3 in our application. When we close or dispose form. We have to dispose ultragid, its appearance and everything relevant to it which we are using. Otherwise the footprint of Virtual memory does not come down. I do not know why have i to dispose everything of Ultragrid and same for other controls. Ultratoolbar manager, Ultratab etc
asad_naeem said:Sorry to say this is not as you are saying.
Could you please be more specific? What exactly is "not as you are saying?"
asad_naeem said:We are using 7.3 in our application.
That version is almost 5 years old, so it's certainly possible that there are bugs in that old version that are causing a memory leak. v7.3 was retired a long time ago, though, so no more fixes are being made in that version.
asad_naeem said:When we close or dispose form. We have to dispose ultragid, its appearance and everything relevant to it which we are using. Otherwise the footprint of Virtual memory does not come down. I do not know why have i to dispose everything of Ultragrid and same for other controls. Ultratoolbar manager, Ultratab etc
If you create a control - any control, you are responsible for disposing of that control.
If you place a control on a form at design-time, then the form will handle disposing those controls for you, automatically, when the form is disposed.
Regarding other objects such as appearances, the grid disposes those objects which it creates and for which it is appropriate to dispose.
I'd be happy to try to assist you with whatever issue you are experiencing here, but you have provided almost no information about what is happening. What objects do you feel are causing a memory leak? How do you know? What kind of testing have you done and what tools are you using to do it?
If you can post a sample project demonstrating some sort of memory leak, then we will, of course, be happy to look into it. But there's not enough information here to even discuss the subject in any meaningful way.
I am getting this errorSorry, there was a problem with your last request!Either the site is offline or an unhandled error occurred. We apologize and have logged the error. Please try your request again or if you know who your site administrator is let them know too.I am unable to attach sample project please provide me some email id to send sample project to you.