Click here to Skip to main content
15,902,492 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: getting infragistics Pin
Vasudevan Deepak Kumar29-Aug-07 3:35
Vasudevan Deepak Kumar29-Aug-07 3:35 
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 
Hello,

I posted the following in the C++/CLI forum, because the application I was writing when I noticed the problem is written in C++/CLI. However, the thought occured to me that maybe this is something .NET developers in C# or VB.NET have also experienced. Please take a read through and let me know what you think. Thanks!


Yesterday I tried an experiment.... I took a C++/CLI application of mine and disabled my menu-disabling code so that my full menu system (with fly-outs) would work even when no application data was open. Using Task Manager to monitor my memory use, I noticed that every time I expanded a top-level menu or moused over a sub-menu that triggered a fly-out, more memory was used. No shock there. BUT, when I click back in the main window area to make all the fly-outs disappear, the memory use does NOT decrease! In fact, I sat there for 10 minutes waiting for Task Manager to show some drop in memory use, but it never did. Meanwhile, when I triggered the same fly-out again, even MORE memory was used.

I noticed the same behavior when I triggered the Open File Dialog (.NET out of the box -- no overrides or anthing weird).

The application I am writing is very dialog-intensive. The base application uses about 64MB. But at the consumption rates I'm seeing, I could very well imagine that after an hour or so I'd be up to 512MB from invoking dialogs and the GC failing to reclaim memory.

What the heck is going on? Is my Garbage Collector broken? Should I somehow manually invoke garbage collection to clear some memory? Does anyone know if the GC works on a time interval or a certain percentage of consumed memory, or what?

Thanks for your help.

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

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.