Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
Questionlimit memory c# Pin
william ormundo12-Mar-12 4:29
william ormundo12-Mar-12 4:29 
AnswerRe: limit memory c# Pin
Dave Kreskowiak12-Mar-12 4:55
mveDave Kreskowiak12-Mar-12 4:55 
GeneralRe: limit memory c# Pin
william ormundo12-Mar-12 9:44
william ormundo12-Mar-12 9:44 
AnswerRe: limit memory c# Pin
Luc Pattyn12-Mar-12 10:06
sitebuilderLuc Pattyn12-Mar-12 10:06 
GeneralRe: limit memory c# Pin
william ormundo12-Mar-12 10:31
william ormundo12-Mar-12 10:31 
AnswerRe: limit memory c# Pin
Luc Pattyn12-Mar-12 10:35
sitebuilderLuc Pattyn12-Mar-12 10:35 
GeneralRe: limit memory c# Pin
Dave Kreskowiak12-Mar-12 10:08
mveDave Kreskowiak12-Mar-12 10:08 
AnswerRe: limit memory c# Pin
OriginalGriff12-Mar-12 7:28
mveOriginalGriff12-Mar-12 7:28 
There is no limit of 2GB for all information in .NET - but there is a limit of 2GB for any one object in .NET

What that means is that each object you create must be less than 2GB - you can have an array of 536,870,912 strings, each string of which can be 1GB in size, but you cannot have an array of 536,870,913 strings (assuming each reference is 32 bits, that would take teh total size of the array over 2GB - for 64 bit references the size is halved).

This doesn't mean that you won't get "out of memory" errors - it depends on how much virtual memory is available to .NET and your system in general, and you may run out of memory if the garbage collector can't free up a big enough chunk to fill a request.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

AnswerRe: limit memory c# Pin
jschell12-Mar-12 8:55
jschell12-Mar-12 8:55 
Questiondefining a row grid within a column grid, c#, wpf Pin
Sutton Mehaffey12-Mar-12 3:37
Sutton Mehaffey12-Mar-12 3:37 
AnswerRe: defining a row grid within a column grid, c#, wpf Pin
Wes Aday12-Mar-12 3:55
professionalWes Aday12-Mar-12 3:55 
AnswerDuplicate post Pin
Pete O'Hanlon12-Mar-12 4:10
mvePete O'Hanlon12-Mar-12 4:10 
QuestionProblem with Exchange server monitoring Pin
Sebastian T Xavier11-Mar-12 19:05
Sebastian T Xavier11-Mar-12 19:05 
QuestionMethods of a collection class are not always called Pin
CDP180211-Mar-12 16:52
CDP180211-Mar-12 16:52 
AnswerRe: Methods of a collection class are not always called Pin
Luc Pattyn11-Mar-12 17:26
sitebuilderLuc Pattyn11-Mar-12 17:26 
GeneralRe: Methods of a collection class are not always called Pin
CDP180211-Mar-12 23:34
CDP180211-Mar-12 23:34 
GeneralRe: Methods of a collection class are not always called Pin
lukeer12-Mar-12 3:11
lukeer12-Mar-12 3:11 
AnswerRe: Methods of a collection class are not always called Pin
Luc Pattyn12-Mar-12 3:26
sitebuilderLuc Pattyn12-Mar-12 3:26 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 4:03
CDP180212-Mar-12 4:03 
AnswerRe: Methods of a collection class are not always called Pin
Luc Pattyn12-Mar-12 4:23
sitebuilderLuc Pattyn12-Mar-12 4:23 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 21:21
CDP180212-Mar-12 21:21 
AnswerRe: Methods of a collection class are not always called Pin
Pete O'Hanlon11-Mar-12 20:01
mvePete O'Hanlon11-Mar-12 20:01 
GeneralRe: Methods of a collection class are not always called Pin
CDP180212-Mar-12 0:07
CDP180212-Mar-12 0:07 
GeneralRe: Methods of a collection class are not always called Pin
Pete O'Hanlon12-Mar-12 0:43
mvePete O'Hanlon12-Mar-12 0:43 
AnswerRe: Methods of a collection class are not always called Pin
Bernhard Hiller11-Mar-12 21:18
Bernhard Hiller11-Mar-12 21:18 

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.