Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

The code which runs directly under the control of code manager in CLR is called managed code. So the Garbage collector will take care of memory deallocation,providing security etc.

Then what about the unmanaged code like if pointers are used using the keyword Unsafe within the code. How the memory is deallocated for the same, because all the unmanaged code is executed under the control of operating system.

Thanks,
Prathap.

[Edit]Code formatting removed[/Edit]
Posted
Updated 7-Nov-12 4:54am
v2

1 solution

See here[^].
 
Share this answer
 
Comments
Prathap Gangireddy 7-Nov-12 11:40am    
Hi Richard,

The link is not working.

--Prathap
Richard MacCutchan 7-Nov-12 11:46am    
Sorry, it works for me. Try a search for "c# Unmanaged code" and check links in MSDN.
Prathap Gangireddy 7-Nov-12 11:53am    
Actually, i have read few articles on net, but they are somewhat complicated.So i have posted here.Please provide a simple and detail explanation on this.
bbirajdar 7-Nov-12 12:26pm    
The terms "complicated" , "simple" and "detail" are person relative. What seems easy to me can be complicated for you and vice versa. Better way, you should do your research on your own or contact a tutor. A tutor will judge your weak points and will try to teach you accordingly....
Richard MacCutchan 7-Nov-12 13:56pm    
There is no simple detailed explanation that would be better than the information that's already out there. These things often need a few readings to get clear in the head.

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