Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deleting objects from a collection Pin
Trollslayer17-Oct-09 12:27
mentorTrollslayer17-Oct-09 12:27 
GeneralRe: Deleting objects from a collection Pin
CaptainSeeSharp17-Oct-09 13:16
CaptainSeeSharp17-Oct-09 13:16 
GeneralRe: Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:26
sitebuilderLuc Pattyn17-Oct-09 13:26 
AnswerRe: Deleting objects from a collection Pin
DaveyM6917-Oct-09 12:51
professionalDaveyM6917-Oct-09 12:51 
GeneralRe: Deleting objects from a collection Pin
Trollslayer17-Oct-09 12:55
mentorTrollslayer17-Oct-09 12:55 
GeneralRe: Deleting objects from a collection Pin
DaveyM6917-Oct-09 13:10
professionalDaveyM6917-Oct-09 13:10 
GeneralRe: Deleting objects from a collection Pin
Trollslayer17-Oct-09 13:16
mentorTrollslayer17-Oct-09 13:16 
GeneralRe: Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:33
sitebuilderLuc Pattyn17-Oct-09 13:33 
Yep. objects larger than 85KB are allocated in the LOH, which used to risk fragmentation and an unexpected OutOfMemoryException (often while a lot of memory was free). I had some code that could demonstrate that easily in a matter of milliseconds, however it no longer fails consistently, so I suspect they did something to improve the situation. Not sure what, when, how, and how well though.

FYI: as collections are based on arrays, which grow by doubling their size, they pretty soon end up being large objects (a List<T> is NOT a linked list, it really is an array). So an app that uses lots of lists of more than 20K objects is bound to affect the LOH fragmentation state to some extent.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? Neen!


Answer[Added informatio] Deleting objects from a collection Pin
Trollslayer17-Oct-09 13:05
mentorTrollslayer17-Oct-09 13:05 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
DaveyM6917-Oct-09 13:17
professionalDaveyM6917-Oct-09 13:17 
GeneralRe: [Added informatio] Deleting objects from a collection [modified] Pin
CaptainSeeSharp17-Oct-09 13:20
CaptainSeeSharp17-Oct-09 13:20 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:36
sitebuilderLuc Pattyn17-Oct-09 13:36 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
CaptainSeeSharp17-Oct-09 13:43
CaptainSeeSharp17-Oct-09 13:43 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:53
sitebuilderLuc Pattyn17-Oct-09 13:53 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
Luc Pattyn17-Oct-09 13:47
sitebuilderLuc Pattyn17-Oct-09 13:47 
GeneralRe: [Added informatio] Deleting objects from a collection Pin
harold aptroot17-Oct-09 14:09
harold aptroot17-Oct-09 14:09 
AnswerRe: Deleting objects from a collection Pin
dojohansen17-Oct-09 23:05
dojohansen17-Oct-09 23:05 
AnswerThanks everyone - results Pin
Trollslayer18-Oct-09 2:58
mentorTrollslayer18-Oct-09 2:58 
GeneralRe: Thanks everyone - results Pin
DaveyM6918-Oct-09 3:51
professionalDaveyM6918-Oct-09 3:51 
GeneralRe: Thanks everyone - results Pin
Trollslayer18-Oct-09 3:57
mentorTrollslayer18-Oct-09 3:57 
GeneralRe: Thanks everyone - results Pin
DaveyM6918-Oct-09 4:04
professionalDaveyM6918-Oct-09 4:04 
Questiongetting Bios date from c# in win64 environments Pin
Fred 3417-Oct-09 7:17
Fred 3417-Oct-09 7:17 
AnswerRe: getting Bios date from c# in win64 environments Pin
Abhijit Jana17-Oct-09 8:24
professionalAbhijit Jana17-Oct-09 8:24 
GeneralRe: getting Bios date from c# in win64 environments Pin
Fred 3417-Oct-09 9:09
Fred 3417-Oct-09 9:09 
GeneralRe: getting Bios date from c# in win64 environments Pin
Richard MacCutchan17-Oct-09 9:30
mveRichard MacCutchan17-Oct-09 9:30 

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.