S
Sudip_inn
Guest
First question
when we work with dataset and list then we need to clear memory it occupied after user.
dataset has dispose function. when we call dataset's dispose function then memory is immediately clear which has been occupied by dataset or memory is clear later when GC called ?
the same way when we work with List<T> and set List = null; then memory is immediately clear which has been occupied by dataset or memory is clear later when GC called ?
if i need to free up memory for dataset & list then what i need to do? should i call GC.Collect ?
Second question
when we declare dataset & list in function and when function call end then memory is immediately clear whatever objects we have created inside function or do we need to call object dispose or object = null to free up memory immediately?
please let me what happen in detail.
thanks
Continue reading...
when we work with dataset and list then we need to clear memory it occupied after user.
dataset has dispose function. when we call dataset's dispose function then memory is immediately clear which has been occupied by dataset or memory is clear later when GC called ?
the same way when we work with List<T> and set List = null; then memory is immediately clear which has been occupied by dataset or memory is clear later when GC called ?
if i need to free up memory for dataset & list then what i need to do? should i call GC.Collect ?
Second question
when we declare dataset & list in function and when function call end then memory is immediately clear whatever objects we have created inside function or do we need to call object dispose or object = null to free up memory immediately?
please let me what happen in detail.
thanks
Continue reading...