Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
9364
Memory leakage due to data binding?
posted

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!

 

  • 48586
    posted

    Hello,

     

    Just let us know when you manage to isolate this behavior. We will gladly look at it.

     

    Thank you for using Infragistics Components.

  • 469350
    Suggested Answer
    Offline posted

    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?

  • 48586
    posted

    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.