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
95
dipose does nothing and memory is growing
posted

i have a memory allocation problem

when the form.dipose method is called, components.dispose get called but memory allocated remains

after this call, myGrid.IsDisposed is set to false

but when i call myGrid.Dipose(), it clears memory

we are working on version 7.3.20073.38

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

        The grid is not (and cannot) dispose itself. It is up to the application to do it. So if it's not getting disposed, it's because your application is not disposing it.

        The default implementation of a Form loops through all of it's child controls and disposes of them, so usually you don't have to do anything. My guess is that the grid you are referring to has not been added to the Controls collection of the form.  

Reply Children
No Data