Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
QuestionConfused on method type Pin
Truck5326-Feb-15 3:58
Truck5326-Feb-15 3:58 
AnswerRe: Confused on method type Pin
OriginalGriff26-Feb-15 4:22
mveOriginalGriff26-Feb-15 4:22 
AnswerRe: Confused on method type Pin
manchanx26-Feb-15 5:09
professionalmanchanx26-Feb-15 5:09 
QuestionHow memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 2:56
professionalTridip Bhattacharjee26-Feb-15 2:56 
AnswerRe: How memory is allocated in .Net application PinPopular
OriginalGriff26-Feb-15 3:14
mveOriginalGriff26-Feb-15 3:14 
GeneralRe: How memory is allocated in .Net application Pin
manchanx26-Feb-15 4:05
professionalmanchanx26-Feb-15 4:05 
GeneralRe: How memory is allocated in .Net application Pin
OriginalGriff26-Feb-15 4:11
mveOriginalGriff26-Feb-15 4:11 
GeneralRe: How memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 4:10
professionalTridip Bhattacharjee26-Feb-15 4:10 
thanks for your time and answer. you said : that's important: because all reference values are allocated on the Heap: never, ever on the stack.

int i = 6;

Integers are Value types, so "i" is on the stack, and is the value of the integer - in this case 6.


i heard that reference type stored in heap and their corresponding value stored in stack.

you said but this is not very clear MyClass is a reference type (all classes are reference types, all structs are value types) so the instance data is on the heap, and that includes the value type integer "Value" it contains. "mc" is on the stack and holds a reference to the heap based actual data.

is there any book which i can download its pdf version which you read and tell me which chapter discuss memory management related things for c# or any other book which easily help me to understand with picture how and when data stored in heap and stack.

share knowledge if you know what is high frequency heap?
tbhattacharjee

GeneralRe: How memory is allocated in .Net application Pin
OriginalGriff26-Feb-15 4:17
mveOriginalGriff26-Feb-15 4:17 
GeneralRe: How memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 4:19
professionalTridip Bhattacharjee26-Feb-15 4:19 
GeneralRe: How memory is allocated in .Net application Pin
OriginalGriff26-Feb-15 4:25
mveOriginalGriff26-Feb-15 4:25 
GeneralRe: How memory is allocated in .Net application Pin
jschell26-Feb-15 10:02
jschell26-Feb-15 10:02 
GeneralRe: How memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 21:06
professionalTridip Bhattacharjee26-Feb-15 21:06 
GeneralRe: How memory is allocated in .Net application Pin
Pete O'Hanlon27-Feb-15 7:23
mvePete O'Hanlon27-Feb-15 7:23 
GeneralRe: How memory is allocated in .Net application Pin
Tridip Bhattacharjee1-Mar-15 21:22
professionalTridip Bhattacharjee1-Mar-15 21:22 
GeneralRe: How memory is allocated in .Net application Pin
manchanx26-Feb-15 4:24
professionalmanchanx26-Feb-15 4:24 
GeneralRe: How memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 22:01
professionalTridip Bhattacharjee26-Feb-15 22:01 
GeneralRe: How memory is allocated in .Net application Pin
Pete O'Hanlon26-Feb-15 22:53
mvePete O'Hanlon26-Feb-15 22:53 
GeneralRe: How memory is allocated in .Net application Pin
OriginalGriff26-Feb-15 4:41
mveOriginalGriff26-Feb-15 4:41 
GeneralRe: How memory is allocated in .Net application Pin
Santosh K. Tripathi2-Mar-15 17:07
professionalSantosh K. Tripathi2-Mar-15 17:07 
AnswerRe: How memory is allocated in .Net application Pin
F-ES Sitecore26-Feb-15 3:59
professionalF-ES Sitecore26-Feb-15 3:59 
GeneralRe: How memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 4:16
professionalTridip Bhattacharjee26-Feb-15 4:16 
GeneralRe: How memory is allocated in .Net application Pin
F-ES Sitecore26-Feb-15 4:42
professionalF-ES Sitecore26-Feb-15 4:42 
GeneralRe: How memory is allocated in .Net application Pin
Richard MacCutchan26-Feb-15 5:09
mveRichard MacCutchan26-Feb-15 5:09 
GeneralRe: How memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 21:03
professionalTridip Bhattacharjee26-Feb-15 21:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.