Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to know in detail how memory management actually works in .net framework ? What happen when we create a unnecessary object and don't use it . does it occupy memory or does GC removes it? Actually i want to study the fundamentals of memory management in .net like allocating memory,releasing memory .. Thank u.
Posted
Updated 14-Aug-13 1:45am
v2

 
Share this answer
 
v3
Comments
Rambo_Raja 14-Aug-13 7:58am    
+5...thnx
[no name] 14-Aug-13 9:02am    
Thank You.
 
Share this answer
 
Comments
Rambo_Raja 14-Aug-13 7:59am    
5*..thnx
Refer below link. Which explains everything with example :

Memory Management Misconceptions[^]
 
Share this answer
 
Why don't you read the documentation (Garbage Collection at MSDN[^])?


Quote:
What happen when we create a unnecessary object and don't use it
'Unused' objects would be eventually collected (but, again, read the documentation for a technically correct answer), however 'create a unnecesasry object and not using it' should happen only to the drunk programmer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900