raddock memory leak

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    14 posts
    Member since:
    Feb 2011

    Posted 15 Mar 2011 Link to this post

    Hello,

    it seems even when i set the HostWindow.CloseAction to DockWindowCloseAction.CloseAndDispose the controls / form which is hosted doesnt get disposed. The only way to to reduce memory usage is to call GC.Collect() manually. Is there a more elegant way to reduce the memory usage?


    thx 4 help
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 18 Mar 2011 Link to this post

    Hello Patrick,

    Thank you for writing.

    Once you set the CloseAction to CloseAndDispose, GC will dispose the necessary object in one of the next passes.

    I guess that your inconvenience is caused by the fact that the Garbage Collector releases the necessary instances later than it frees a less complex control. The reason is that our RadControls are second generation Garbage Collector objects. In case you would like to release the memory instantly after the subform is closed, you can only call the GC.Collect method manually. More information on garbage collection generations can be found in this MSDN article.

    Best wishes,
    Stefan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top