Hi all,
Currently running 12.2 Windows Forms components. While running our app in a memory profiler, I've noticed the creation of a number of MdiMergePlaceholderTools and InstanceProps that are not released after closing the window being tested. After repeated runs the number of these tools steadily increases and they do not ever seem to be disposed. The same number of InstanceProps objects are being created, so it seems these tools also have instance props.
According to the help site, the MdiMergePlaceholderTool is "created internally as a wrapper to a merged tool from an MDI child". I tried setting MdiMergable to false in our ToolbarManager, but this did not seem to have an effect.
Are these tools created in other components? Do I need to do anything specific to get these released?
Thanks
EDIT: I accidentally posted this in the wrong section. Please move to the appropriate topic. Thanks!
Correction, setting MdiMergable to false DID prevent the creation of the tools. However, this may be an option we want. Is additional action required to have the tools disposed?
Hello,
Could you please let me know the exact version of Infragistics that you are using (the exact service release of Infragistics 12.2), also please let me know which tool for memory profiling you have used. I have made some base tests with Infragistics 12.2 SR 2061 and have used ANTS Memory Profiler 7.0 and on a first glance there is nothing embarrassing. Please see attached sample, also please modify my sample in order to demonstrat your issue and let me know if I am missing something.
I am waiting for your feedback.
Hi Hristo,
We use .NET Memory Profiler (http://memprofiler.com/). I ran your sample inside the profiler. I took a heap snapshot before opening a window, clicked "Add Form", and then took another heap snapshot. The profiler showed MdiMergePlaceholderTools obects being created and not Removed. After opening multiple windows and closing them, I have a growing total of said tools.
I am not seeing additional instance props being created in your sample like I do in our project, so it seems we are doing something wrong there.
EDIT: We are using infragistics 12.2.20122.2087
EDIT 2: I set the MdiMergable property to false in a second test and did not see any of those objects being created or disposed. In fact, I saw quite a bit less action as a whole as far as object creation/removal.
Hello ,
I was able to see the instances of MdiMergePlaceholderTools with .NET Memory Profiler. Based on this I could create a case for you in our issue tracing system and then to log this for further investigation of our developers. So will this solves your issue?
That sounds great, thanks.
I have created a support ticket t for you in our issue tracing system. The ID of the ticket is CAS-120862-Z8X0H1. So I will update you for the progress of this issue through the mentioned case.
Thank you for using Infragistics Components.