Re: stack and a heap
- From: "Terry Burns" <here@xxxxxxx>
- Date: Sat, 4 Jun 2005 17:21:58 +0100
Yes, I know, sometimes when you know something implicitly, you forget to
state it, thanks for correcting my text.
--
Terry Burns
http://TrainingOn.net
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.1d0bc5a44af5918d98c262@xxxxxxxxxxxxxxxxxxxxxxx
> Terry Burns <here@xxxxxxx> wrote:
>> They are both memory which is used to store objects. The stack by default
>> only stores Value types like Struct and Integers, whereas the Heap is
>> used
>> to allocate memory for reference types.
>
> That's an oversimplification, unfortunately. The stack is also used to
> store references (rather than the objects themselves), and all types
> can end up on the heap as part of other objects.
>
> See http://www.pobox.com/~skeet/csharp/memory.html
>
> Note that this doesn't explain the difference between the heap and the
> stack, just what goes where.
>
> --
> Jon Skeet - <skeet@xxxxxxxxx>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too
.
- References:
- stack and a heap
- From: shine
- Re: stack and a heap
- From: Terry Burns
- Re: stack and a heap
- From: Jon Skeet [C# MVP]
- stack and a heap
- Prev by Date: Re: Windows Forms Application
- Next by Date: RE: Update web form
- Previous by thread: Re: stack and a heap
- Next by thread: Re: stack and a heap
- Index(es):
Relevant Pages
|