Memory Leak problems

rated by 0 users
This post has 9 Replies | 4 Followers

Top 100 Contributor
Points 2,131
walterG Posted: 11-07-2008 6:35 PM

 Hello !

I believe that almost all infragistics controls have memory leak issue. I have discovered it because my application is using to much memory so i have invastigated first on my application and next by making some simple examples(using only one or two control) and using a memory profiler.

Now, the problem is that every infragistics control is referenced by a delegate called "themeChangedDelegate" and as a conseguence the GC cant return that memory to the OS. if you are not aware of this problem and cannot replicate this issue, i can make a video with a very simple example.

Hope to see fixed this issue as soon as possible.

Thank you.

Best Regards.

ps: i'm using 2008 vol2.


  • | Post Points: 65
Top 75 Contributor
Points 2,511
Infragistics MVP

I noticed a similar problem with the winGrid 8.2 in my example email application but the memory problem went away in 8.3 not sure about the other controls but the memory problem i was facing has disapeared... I just tried to replicate the memory leak that you are refering to as mine was something different but could not find a leak in the themeChangedDelegate delegate so I for one would be interested in a video example so I could test it on my machine to...

Visual Studio and Infragistics Tutorials
http://www.visualstudiotutorials.com

  • | Post Points: 20
Top 100 Contributor
Points 2,131

Hi Bishop,

here are the videos.

http://www.focuslab.eu/public/infragisticsmemoryleak/t1/t1.html

http://www.focuslab.eu/public/infragisticsmemoryleak/t2/t2.html

  • | Post Points: 20
Top 75 Contributor
Points 2,511
Infragistics MVP

Couple of things, first the reason you see Form in "Shortest root path" is because it is part of .Forms... Custom dll files, controls etc. are not part of those objects...

Setting a object to Null does not mean that the GC is going to collect it, furthermore the GC.Collect method is not guaranteed to Collect nor destroy objects in memory as it has a mind of its own, however setting a objects IDisposable and/or Object.Dispose does allow the gc to clean up a little better than Null.

 I am pretty swamped this weekend but will try to get to making a video to show what I mean and does not produce the same results as your videos.

Visual Studio and Infragistics Tutorials
http://www.visualstudiotutorials.com

  • | Post Points: 20
Top 100 Contributor
Points 2,131

Chris Bishop:

Couple of things, first the reason you see Form in "Shortest root path" is because it is part of .Forms... Custom dll files, controls etc. are not part of those objects...

Setting a object to Null does not mean that the GC is going to collect it, furthermore the GC.Collect method is not guaranteed to Collect nor destroy objects in memory as it has a mind of its own, however setting a objects IDisposable and/or Object.Dispose does allow the gc to clean up a little better than Null.

 I am pretty swamped this weekend but will try to get to making a video to show what I mean and does not produce the same results as your videos.


first,

if you have an instance of a class(aka object) referenced only once and than set to null that reference, that instance is going to be destroyed as first as the GC see that it is no longer referenced.

second,

calling Dispose method it does not mean that the GC "Clean up" better the memory! The purpose of IDispose is that the class which implements it

is using unmanaged resourses so the programmer of the class must take care of this because the GC cant do this job!

 


  • | Post Points: 20
Top 75 Contributor
Points 2,511
Infragistics MVP

It would seem that your knowledge of what dispose actually does is amazingly superior to mine so forgive my attempt at trying to help you understand, you have my deepest apologizes for my total Noob answer.

Thanks for the most excelent information about how Null/Nothing works "in C# / VB.NET" I guess I am just confused with how VB6 handles objects.

Visual Studio and Infragistics Tutorials
http://www.visualstudiotutorials.com

  • | Post Points: 5
Top 500 Contributor
Points 665

I am experiencing serious memory leaks. Among other controls I do use Infragistic controls. I have for example a dialog containing an infragistics webtabcontrol. If I click on all 7 tabs I have lost 3MB on the server.

Have you received a solution from Infragistics or did you find a workaround for the themeChangedDelegate.

 

Roland

  • | Post Points: 20
Top 100 Contributor
Points 2,131

as you can see no answer.

 

  • | Post Points: 20
Top 10 Contributor
Points 33,373

If you require the developers to look into the issue or require a formal response, you should submit this issue through Developer Support.

-Matt

  • | Post Points: 20
Not Ranked
Points 200

hi everyone, we encountered this issue a while back in vol 7.3 we have a workaround for this issue.

i dont know if it will work with current versions, but you can try.

the solution and explanation of the problem (basically infragistics is rooting all controls to static event handlers) can be found here

(http://subjectively.blogspot.com/2009/03/importance-of-recycling-memory.html)

 

  • | Post Points: 5
Page 1 of 1 (10 items) | RSS

Forum Statistics

40,788 users have contributed to 129,818 threads and 144,150 posts.

In the past week, we've had 5,582 new users, adding to our total of 467,627 registered users!

In the past 24 hours, we have 56 new thread(s), 217 new post(s), and

In the past 3 days, the most popular thread for everyone has been "Google Chrome & UltraWebGrid. Compatible or Not? ". The post with the most views is "In wingrid RowFilter dropdown items for DropDown column is not shwing ". The most replies were made to "Google Chrome & UltraWebGrid. Compatible or Not? ".

Please welcome our newest member fceskxv .