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

C#

 
AnswerRe: RegEx help Pin
PIEBALDconsult12-Mar-12 7:01
mvePIEBALDconsult12-Mar-12 7:01 
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 
On top of what OriginalGriff said, it also depends on what you're doing. If you're resizing the HashTable to get to this point, you've fragmented the Large Object Heap. This will give you a problem. The Large Object Heap is never defragmented (for performance reasons).

So, if you started with a small(ish) HashTable, then exand it to accomodate more entries, you're actuall creating a new HashTable object with greater capacity, copying the references in old object to the new one, then destroying the old HashTable. Do this enough and you'll end up fragmenting the Large Object Heap to the point where you've got, say 5GB of memory available, but no free blocks of memory big enough to hold your new expanded HashTable all in one shot. There is no way to force a defrag of the Large Object Heap.

To get minimize this, try specifying the expected capacity of the HashTable when you create an instance of it.

AnswerRe: limit memory c# Pin
OriginalGriff12-Mar-12 7:28
mveOriginalGriff12-Mar-12 7:28 
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 

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.