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

.NET (Core and Framework)

 
QuestionMemory allocation / GC issues??? Pin
Xpnctoc24-Aug-07 4:33
Xpnctoc24-Aug-07 4:33 
AnswerRe: Memory allocation / GC issues??? Pin
Luc Pattyn24-Aug-07 5:17
sitebuilderLuc Pattyn24-Aug-07 5:17 
GeneralRe: Memory allocation / GC issues??? Pin
Xpnctoc24-Aug-07 8:54
Xpnctoc24-Aug-07 8:54 
GeneralRe: Memory allocation / GC issues??? Pin
Dave Kreskowiak24-Aug-07 9:01
mveDave Kreskowiak24-Aug-07 9:01 
GeneralRe: Memory allocation / GC issues??? Pin
Lutosław25-Aug-07 21:35
Lutosław25-Aug-07 21:35 
GeneralRe: Memory allocation / GC issues??? Pin
Luc Pattyn25-Aug-07 23:27
sitebuilderLuc Pattyn25-Aug-07 23:27 
GeneralRe: Memory allocation / GC issues??? Pin
Dave Kreskowiak26-Aug-07 4:06
mveDave Kreskowiak26-Aug-07 4:06 
GeneralRe: Memory allocation / GC issues??? Pin
Luc Pattyn24-Aug-07 12:57
sitebuilderLuc Pattyn24-Aug-07 12:57 
Hi,

there are good reasons why the gc is lazy, and should not be called explicitly:

1. it is an expensive operation, since it needs to check all the data in your app, figuring
out which objects still have references to them (are "alive") and which don't. There can
be a lot of data involved, it does not fit in the cache, and it trashes the cache
(i.e. whatever was rightfully in there now is gone).

2. while doing its job, the gc suspends all your threads, to make sure the stacks
and objects don't change while it is examining them; so your app is temporarily dead.

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


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 
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 

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.