Hi,
I have an UltraGrid with some events like InitializeLayout, InitializeRow, etc
Is there a way to Unsubscribe from all events using reflection.
Thanks
Sangeetha
Sounds like you are looking for the GridEventManager. Check out the PLF topic on Event Managers: http://help.infragistics.com/NetAdvantage/WinForms/2012.2/CLR4.0/?page=Win_Event_Managers.html. Don't forget to turn them back on when you are done :).
Hi Matthew,
Thank You for your reply. I did explore disabling events which I think is a cool feature to have. But my problem is a lot of Infragistics objects are not being Garbage collected although they are disposed so was trying to unhook all event associated with them to free them so they can be Garbage Collected.
Any suggestion on this is greatly appreciated.
If you can provide a sample that demonstrates any leaks we'll be happy to investigate why any references are being held and the objects are not being properly cleaned up. I'm not aware of any existing leaks for the grid. What version of the UltraGrid are you working with?
Will try to create a test case as soon as I figure out what is causing Memory leaks.
I am using WindowsForms 11.2
I just did a search and the last memory leak issue I found for the Grid was fixed before 11.2 came around. It could be one of the editors or other controls you are using... What else does the structure of the form/app look like? What other controls are you using aside from the grid? I guess the test case will explain all these questions so let me know how I can help in the meantime.
Hi Sangeetha,
Thank you for the information.
May I ask if you are still able to provide us with a sample that demonstrates any leaks as explained by Matthew? This will help us isolate the cause of this issue and provide you with a solution.
I am looking forward to hearing from you.
I have a Main form which can load one or more plugin Apps. I noticed that this plugin App consumed 650-700 MB of memory when I load (as I see in Task Manager), but when I close the PluginApp, only 150-200 MB of memory is released.
My plugin App contains a TabControl with 14 tabs and each Tab contains a GridControl (UltraGrid Wrapper).
Since the memory was not release fully, I used .Net Memory Profiler to check... and it showed several objects that were disposed but not Garbage collected although I use GC.Collect() to force immediate Garbage Collection.
Also, the Main Form contains a Ribbon to which the Plugin which is available to plugin via a Ribbon Api to create its RibbonTab.
I have a Main form which can load one or more plugin Apps. I noticed that this plugin App consumed 650-700 MB of memory wheh I load (as I see in Task Manager), but when I close the PluginApp, only 15-20 MB of memory is released.
My plugin App contains a TabControl with 14 tabs and each Tab contains a GridControl (UltraGrd Wrapper).