In our app, when user does a search, data is retrieved from the server and brought over to the client in a new Dataset. We have a rather simple control using an UltraTree bound to a DataTable in a Dataset.
So every time a search happens, we rebind the UltraTree to the DataTable in new Dataset. With that, we expect old references from UltraTree to the DataTable in the old Dataset to be cleared.
Our memory profiler tells us that the UltraTree continues to hold references the DataTable in the old Dataset. This keeps the Dataset from being garbage-collected and it continues living in memory well beyond its useful life.
Is UltraTree holding references to Datatable it was previously bound to a known issue? Are there ways to release the bindings so that references are cleared? We are still on version 7.3 and cannot upgrade.
Thanks!
Hello,
Just let us know when you manage to isolate this behavior. We will gladly look at it.
Thank you for using Infragistics Components.
Hi,
The tree should not be holding a reference to the data source after you set it to a new one. Are you disposing the original data table?
Can you post a small sample project demonstrating this so we can check it out?
Hello Vern,
Did you try to reset (ultraTree1.Reset();) UltraTree before rebind it? ? It should to reset all properties of UltraTree include its referents. If this doesn’t help can you please ferity that you are using the latest service release available for your version.
Let me know for the results.