Hi,
Recently, one of my customer have experienced a memory leak because of the maximum GDI Objects that Windows XP accept; 10 000 before throwing a OutOfMemoryException.
I started searching in my framework and found a lot of leaks but not enough after many corrections.
I have created a small project with no dependencies except the framework of Microsoft and a couple of librairies of Infragistics to see if the problem can also be from Infragistics controls.
I have created a form with just one control; a UltraCombo.
This form is open as MdiChild of another form of type MdiParent.
When I open and close many times the MdiChild, the GDI Objects never stop to increase about 2 GDI Objects each time I close the form.
When I try with many controls of Microsoft like Textbox, Checkbox, label, etc... the number of GDI Objects always return to the original number.
Furthermore, when I click the dropdown button (And I have no datasource defined for the control), the GDI Objects grow from 20 and when I close the form, this number don't goes down.
As example, when I start the application, I have 54 GDI Objects. When I open the MdiChild, this number rises 72. If I close the form, the number goes down to 67. If I reopen again the MdiChild, the number of GDI Objects is now 74 and when I close it, it goes down 69. And it grow like that each time I open and close the form. If I open the drop down list, the number grow of increase of 10 and event if I close the form, the number of GDI Objects is now 86 (74 + 10 + 2)
My conclusion is that the UltraCombo have a memory leak. A small one but with many UltraCombo controls in the same form like in many of my real projects, this can be a problem if the user works many hours while opening and closing many forms that contains theses controls.
I don't try with UltraGrid and I will wait for your answer; recommandation...
Thank you.
Hello,
I have created support case (CAS-51470-8LXHVG) for this question. Feel free to attach your sample in the forum or in the case. We will gladly look at it and cheek for you if there is a memory leak.
Thank you
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Thank you for the creation of support case.
I'm not right now at my job for sent you a sample but it is very easy to reproduce.
Just for the previously guy who ask me what is my version of Infragistics, this is the last available on your web site; Netadvantage Select 2010 vol. 2 also with the last service release 20102.2035.
For reproduce, follow these steps:
Dim form as new MDIChild
form.MDIParent = Me
form.Show
I have tried to called GC.Collect and GC.Waitforpendingfinalizers and it has corrected my problem but it's not a best practice to do that.
Thank you again to have answered me and open the support case immediatly without ask me ten other questions and have tried to reproduce on your side.
Thank you for the detailed steps, I have manage to reproduce the issue and I have logged to our system as Dev issue # 37222.I will keep you updated.
I believe we are experiencing this issue as well. Do you know what release this will be reflected in? Thanks.
Hi, Currently this issue is in a testing stage so I believe will be included in the next service release. The service release is planned for the middle of next month. More details about the service release you can find on our Service Release Schedule site:http://es.infragistics.com/support/default.aspx#ServiceReleasesThanks.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.