Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
AnswerRe: Book On C# Programming Code Pin
JChrisCompton13-Jun-12 3:59
JChrisCompton13-Jun-12 3:59 
QuestionHow do I create a web service with Framework 4.0? Pin
JChrisCompton12-Jun-12 15:33
JChrisCompton12-Jun-12 15:33 
AnswerRe: How do I create a web service with Framework 4.0? Pin
Ravi Sant12-Jun-12 23:20
Ravi Sant12-Jun-12 23:20 
GeneralRe: How do I create a web service with Framework 4.0? Pin
JChrisCompton13-Jun-12 3:27
JChrisCompton13-Jun-12 3:27 
GeneralRe: How do I create a web service with Framework 4.0? Pin
Pete O'Hanlon13-Jun-12 3:39
mvePete O'Hanlon13-Jun-12 3:39 
GeneralRe: How do I create a web service with Framework 4.0? Pin
kishhr22-Jun-12 8:43
kishhr22-Jun-12 8:43 
QuestionWhat is the exact difference between heap and stack? Pin
atoi_powered12-Jun-12 12:23
atoi_powered12-Jun-12 12:23 
AnswerRe: What is the exact difference between heap and stack? Pin
RobCroll12-Jun-12 13:17
RobCroll12-Jun-12 13:17 
In non technical teams the stack is an optimized memory bank that is very fast. The heap is a memory bank that isn't as fast but great for handling objects of varying sizes. So when you create an object, .NET looks to see if it is a native or reference type. If it is a native type, the value it put on the stack, otherwise it is put on the heap.

The reason for this is that the stack only handles objects that are 32 bits in size. The fact that all memory allocations are the same size is what makes it fast. Also it's not a pointer to a value that is stored, it's the actual value itself. Because of this Boolean values actually occupy 4 bytes of memory. Native types like doubles are stored in 2 x 4 bytes

A reference type like a string for example could be any size. It could also be very large. So what happens is the string is stored on the heap and a pointer is created and put on the stack so it can be found quickly. Either way, the combination offers a lot faster solution than a simple memory model.
"You get that on the big jobs."

GeneralRe: What is the exact difference between heap and stack? Pin
OriginalGriff12-Jun-12 19:27
mveOriginalGriff12-Jun-12 19:27 
GeneralRe: What is the exact difference between heap and stack? Pin
RobCroll12-Jun-12 19:54
RobCroll12-Jun-12 19:54 
GeneralRe: What is the exact difference between heap and stack? Pin
atoi_powered12-Jun-12 22:58
atoi_powered12-Jun-12 22:58 
GeneralRe: What is the exact difference between heap and stack? Pin
Pete O'Hanlon12-Jun-12 23:05
mvePete O'Hanlon12-Jun-12 23:05 
GeneralRe: What is the exact difference between heap and stack? Pin
atoi_powered12-Jun-12 23:07
atoi_powered12-Jun-12 23:07 
GeneralRe: What is the exact difference between heap and stack? Pin
OriginalGriff12-Jun-12 23:08
mveOriginalGriff12-Jun-12 23:08 
GeneralRe: What is the exact difference between heap and stack? Pin
atoi_powered12-Jun-12 23:10
atoi_powered12-Jun-12 23:10 
GeneralRe: What is the exact difference between heap and stack? Pin
OriginalGriff12-Jun-12 23:15
mveOriginalGriff12-Jun-12 23:15 
AnswerRe: What is the exact difference between heap and stack? Pin
Dave Kreskowiak12-Jun-12 15:54
mveDave Kreskowiak12-Jun-12 15:54 
AnswerRe: What is the exact difference between heap and stack? Pin
Roger Wright12-Jun-12 20:02
professionalRoger Wright12-Jun-12 20:02 
AnswerRe: What is the exact difference between heap and stack? Pin
Abhinav S12-Jun-12 20:08
Abhinav S12-Jun-12 20:08 
AnswerRe: What is the exact difference between heap and stack? Pin
Cracked-Down13-Jun-12 0:49
Cracked-Down13-Jun-12 0:49 
QuestionReport Parameter Pin
mjawadkhatri12-Jun-12 10:51
mjawadkhatri12-Jun-12 10:51 
Questionget row values on datagrid Pin
mrx10012-Jun-12 9:58
mrx10012-Jun-12 9:58 
AnswerSTOP PinPopular
Dave Kreskowiak12-Jun-12 10:35
mveDave Kreskowiak12-Jun-12 10:35 
GeneralRe: STOP Pin
mrx10012-Jun-12 11:17
mrx10012-Jun-12 11:17 
GeneralRe: STOP Pin
Dave Kreskowiak12-Jun-12 12:04
mveDave Kreskowiak12-Jun-12 12:04 

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.