Click here to Skip to main content
16,014,591 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Memory allocation / GC issues??? Pin
Luc Pattyn24-Aug-07 12:57
sitebuilderLuc Pattyn24-Aug-07 12:57 
AnswerRe: Memory allocation / GC issues??? Pin
Dave Kreskowiak24-Aug-07 6:17
mveDave Kreskowiak24-Aug-07 6:17 
GeneralRe: Memory allocation / GC issues??? Pin
Xpnctoc24-Aug-07 8:59
Xpnctoc24-Aug-07 8:59 
AnswerRe: Memory allocation / GC issues??? Pin
Luc Pattyn25-Aug-07 0:04
sitebuilderLuc Pattyn25-Aug-07 0:04 
GeneralRe: Memory allocation / GC issues??? Pin
Xpnctoc25-Aug-07 4:14
Xpnctoc25-Aug-07 4:14 
AnswerRe: Memory allocation / GC issues??? Pin
#realJSOP25-Aug-07 3:13
professional#realJSOP25-Aug-07 3:13 
GeneralRe: Memory allocation / GC issues??? Pin
Xpnctoc25-Aug-07 4:14
Xpnctoc25-Aug-07 4:14 
GeneralRe: Memory allocation / GC issues??? Pin
Luc Pattyn25-Aug-07 8:12
sitebuilderLuc Pattyn25-Aug-07 8:12 
Hi John,

I don't fully agree, AFAIK objects on the large object heap are managed like all other
managed objects, with a single difference: the LOH does not get reshuffled, hence
there is a risk of fragmentation.

Example: allocate 1MB, then 100MB, repeat this N times until memory is almost full,
then throw away the references to all 100MB objects and try to get one really big
object of 300MB.

IMO the threshold (85KB?) is not documented, is not available through some API,
may vary over time, and may depend on your system's memory situation.
I feel the Framework should be more specific about this, it should guarantee a
reasonable minimum value for the threshold, so one can make sure fragmentation will
not become an issue by keeping objects smaller than that.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Memory allocation / GC issues??? Pin
Scott Dorman26-Aug-07 3:09
professionalScott Dorman26-Aug-07 3:09 
AnswerRe: Memory allocation / GC issues??? Pin
Vaibhav Sharma26-Aug-07 16:54
Vaibhav Sharma26-Aug-07 16:54 
GeneralRe: Memory allocation / GC issues??? Pin
Xpnctoc26-Aug-07 17:24
Xpnctoc26-Aug-07 17:24 
QuestionEmbedded resources -- pros & cons Pin
Xpnctoc24-Aug-07 4:16
Xpnctoc24-Aug-07 4:16 
AnswerRe: Embedded resources -- pros & cons Pin
Luc Pattyn24-Aug-07 4:54
sitebuilderLuc Pattyn24-Aug-07 4:54 
GeneralRe: Embedded resources -- pros & cons Pin
Xpnctoc24-Aug-07 8:43
Xpnctoc24-Aug-07 8:43 
GeneralRe: Embedded resources -- pros & cons Pin
Luc Pattyn24-Aug-07 12:48
sitebuilderLuc Pattyn24-Aug-07 12:48 
Questionglobal.asax session help Pin
boyindie24-Aug-07 0:32
boyindie24-Aug-07 0:32 
AnswerRe: global.asax session help Pin
saniy24-Aug-07 3:25
saniy24-Aug-07 3:25 
GeneralRe: global.asax session help Pin
boyindie24-Aug-07 3:42
boyindie24-Aug-07 3:42 
Questionvc++.net Books Pin
trinadh_t23-Aug-07 19:40
trinadh_t23-Aug-07 19:40 
AnswerRe: vc++.net Books Pin
George L. Jackson24-Aug-07 15:21
George L. Jackson24-Aug-07 15:21 
JokeRe: vc++.net Books Pin
Paul Conrad27-Aug-07 16:11
professionalPaul Conrad27-Aug-07 16:11 
GeneralRe: vc++.net Books Pin
George L. Jackson28-Aug-07 0:06
George L. Jackson28-Aug-07 0:06 
QuestionHow to avoid the .net framework after the installer has been made? Pin
dhami_naresh23-Aug-07 16:24
dhami_naresh23-Aug-07 16:24 
AnswerRe: How to avoid the .net framework after the installer has been made? Pin
Mark Churchill23-Aug-07 20:20
Mark Churchill23-Aug-07 20:20 
GeneralRe: How to avoid the .net framework after the installer has been made? Pin
dhami_naresh24-Aug-07 6:03
dhami_naresh24-Aug-07 6:03 

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.