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

.NET (Core and Framework)

 
GeneralRe: getting infragistics Pin
Paul Conrad29-Aug-07 12:43
professionalPaul Conrad29-Aug-07 12:43 
AnswerRe: getting infragistics Pin
Vasudevan Deepak Kumar29-Aug-07 3:32
Vasudevan Deepak Kumar29-Aug-07 3:32 
QuestionAdding a .NET 3.0 component to the toolbox? [modified] Pin
ferdna24-Aug-07 8:04
ferdna24-Aug-07 8:04 
AnswerRe: Adding a .NET 3.0 component to the toolbox? Pin
Paul Conrad26-Aug-07 10:50
professionalPaul Conrad26-Aug-07 10:50 
GeneralRe: Adding a .NET 3.0 component to the toolbox? Pin
ferdna26-Aug-07 11:40
ferdna26-Aug-07 11:40 
GeneralRe: Adding a .NET 3.0 component to the toolbox? Pin
Paul Conrad27-Aug-07 16:10
professionalPaul Conrad27-Aug-07 16:10 
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 
Hi,

you may not have a problem at all.

when you instantiate some class, an array, a dialog, whatever, you would need more
memory; either your Operating System allows you that, or your gc will try and free
up some of the memory that is already yours. There is nothing periodic about it,
it's on a need-to-run base.

So if your app is allowed 100MB, it will grow until it starts to reach such numbers,
only then will gc run, and you may fall back to as low as a few MB. Who cares ?

If the number it falls back to keeps growing, then there is a potential problem,
since that indicates more and more objects don't get freed, either because you
really need more and more objects, or because you have a memory leak.

If you are not using unmanaged code, the typical way to get memory leaks is by
forgetting to call Dispose() for objects instantiated from a class that has such
method. There are many, one that people often seem to forget is Form (and hence
also OpenFileDialog). For dialogs, you should create and show them, then
collect the results and dispose.

Hope this helps.

BTW: there are lots of articles on memory, dispose and the like, here on CP and
elsewhere.

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

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.