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.
Crystal.
Here is sample project
Hi
Here is the sample Project although there is no memory Leak in this project but u can create.
Visual Studio 2008, Infragistics 7.2 sorry for 7.3.
This is an MDI Application there is only one form which contains 16 ultragirds on a form with 100 records in it. Open task manager and after running the .exe file, keep on pressing new button and open 25 instances on new form. You will notice that Virtual Memory (Commit Size) reaches to around 65MB. Then close the forms one by one. You will notice that memory will not decrease even less than 64 MB.
When when you un-comment the code in form closing event and rerun then application then you will notice that memory will come to 25 MB.
There is another problem that when I run the application it starts from 14 MB and even after closing and disposing all the objects on a form it comes to only 25 MB why is it taking 11 MB still??????
Regards
Asad Naeem
Hi Asad,
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.
Hello Asad,
Could you please try to download the latest service release available for your current version or either download the trial version of Net Advantage 11.2 and test your applications against it.
Please do not hesitate to ask if something comes up.