Click here to Skip to main content
16,005,552 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exception Handling Question Pin
Kevin McFarlane12-Oct-08 4:16
Kevin McFarlane12-Oct-08 4:16 
AnswerRe: Exception Handling Question Pin
Colin Angus Mackay11-Oct-08 6:22
Colin Angus Mackay11-Oct-08 6:22 
GeneralRe: Exception Handling Question Pin
Rafone11-Oct-08 8:44
Rafone11-Oct-08 8:44 
AnswerRe: Exception Handling Question Pin
Paul Conrad11-Oct-08 6:33
professionalPaul Conrad11-Oct-08 6:33 
AnswerRe: Exception Handling Question Pin
Rafone11-Oct-08 8:07
Rafone11-Oct-08 8:07 
AnswerRe: Exception Handling Question Pin
Pete O'Hanlon12-Oct-08 9:52
mvePete O'Hanlon12-Oct-08 9:52 
QuestionMemory Management Pin
Mogaambo11-Oct-08 5:58
Mogaambo11-Oct-08 5:58 
AnswerRe: Memory Management Pin
S. Senthil Kumar11-Oct-08 6:10
S. Senthil Kumar11-Oct-08 6:10 
Mogaambo wrote:
Can the size of the heap grow at this point?


Yes, you can check it out yourself. Open Perfmon (type perfmon.msc at the command prompt), right click on the graph and select Add Counters, select .NET CLR Memory and select one of the heap related parameters (#Total Committed Bytes, for example). Select your process and click OK. You should be able to watch the GC heap expand as you create more objects and don't release much.


Mogaambo wrote:
If so, what is the heap's default size and by how much will it grow in this situation?


I don't the heap's default size (Gen 0 + Gen 1 + Gen 2 + Large Object Heap), I would imagine it would vary by platform (x86 vs x64), workstation vs server etc. The max size of the heap would be restricted to the max virtual memory of a process, which is 2 GB (actually 4, but the OS takes 2) on x86.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Home Page |My Blog | My Articles | My Flickr | WinMacro

QuestionUnsafe code Pin
dan!sh 11-Oct-08 5:56
professional dan!sh 11-Oct-08 5:56 
AnswerRe: Unsafe code Pin
Colin Angus Mackay11-Oct-08 6:08
Colin Angus Mackay11-Oct-08 6:08 
GeneralRe: Unsafe code Pin
dan!sh 11-Oct-08 6:12
professional dan!sh 11-Oct-08 6:12 
GeneralRe: Unsafe code Pin
Mark Churchill12-Oct-08 0:46
Mark Churchill12-Oct-08 0:46 
AnswerRe: Unsafe code Pin
S. Senthil Kumar11-Oct-08 6:18
S. Senthil Kumar11-Oct-08 6:18 
GeneralRe: Unsafe code Pin
dan!sh 11-Oct-08 6:21
professional dan!sh 11-Oct-08 6:21 
Questionout of memory exception Pin
Mogaambo11-Oct-08 5:50
Mogaambo11-Oct-08 5:50 
AnswerRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 6:11
Colin Angus Mackay11-Oct-08 6:11 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 10:13
Mogaambo11-Oct-08 10:13 
GeneralRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 12:01
Colin Angus Mackay11-Oct-08 12:01 
GeneralRe: out of memory exception Pin
Abi Bellamkonda12-Oct-08 14:34
Abi Bellamkonda12-Oct-08 14:34 
AnswerRe: out of memory exception Pin
#realJSOP11-Oct-08 7:14
professional#realJSOP11-Oct-08 7:14 
GeneralRe: out of memory exception Pin
Paul Conrad11-Oct-08 10:47
professionalPaul Conrad11-Oct-08 10:47 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 10:54
Mogaambo11-Oct-08 10:54 
GeneralRe: out of memory exception Pin
Paul Conrad11-Oct-08 11:02
professionalPaul Conrad11-Oct-08 11:02 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 11:46
Mogaambo11-Oct-08 11:46 
GeneralRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 11:55
Colin Angus Mackay11-Oct-08 11:55 

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.