Ask a questionAsk a question
 

AnswerMemory Issue in Windows application

  • Thursday, October 29, 2009 6:38 AMk.kedarnadh Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    In my application, when the Form is opened the memory usage is increased to 100 MB, this Form has UltraTreeNodes nearly more than  45000 nodes are there. when i m closing the form how much amount of memory is raised that amount of memory is not released even after the form closed. 

    and also the memory is taken by the Ultra Tree nodes can be reduced or not?

    Can u give me suggestion and solution for the above problems. its urgent plz Reply me 

    Thanks,
    Kedar

Answers

  • Friday, October 30, 2009 9:22 AMeryangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,
    It is ok that the memory usage is up to 100MB when your application is running, all of those memory will be reclaimed by GC after application exited. But, do you mean that those memory are not released after your application closed? can you see the corresponding process from task manager after your application exited?
    Memory taken by those nodes can be reduced, there is no need to load all nodes at same time, only allocate memory for nodes that are going to be shown, and set those nodes to null if it is not visible for user, GC will help to clean objects that has no handle.

    Thanks,
    Eric
    Please remember to mark helpful replies as answers and unmark them if they provide no help.

All Replies

  • Friday, October 30, 2009 9:22 AMeryangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,
    It is ok that the memory usage is up to 100MB when your application is running, all of those memory will be reclaimed by GC after application exited. But, do you mean that those memory are not released after your application closed? can you see the corresponding process from task manager after your application exited?
    Memory taken by those nodes can be reduced, there is no need to load all nodes at same time, only allocate memory for nodes that are going to be shown, and set those nodes to null if it is not visible for user, GC will help to clean objects that has no handle.

    Thanks,
    Eric
    Please remember to mark helpful replies as answers and unmark them if they provide no help.