Click here to Skip to main content
15,918,125 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Want to draw a line on a Form with C++/CLI Pin
Mark Salsbery24-Aug-07 12:14
Mark Salsbery24-Aug-07 12:14 
GeneralRe: Want to draw a line on a Form with C++/CLI Pin
George L. Jackson24-Aug-07 12:49
George L. Jackson24-Aug-07 12:49 
GeneralRe: Want to draw a line on a Form with C++/CLI Pin
Mark Salsbery24-Aug-07 12:54
Mark Salsbery24-Aug-07 12:54 
GeneralRe: Want to draw a line on a Form with C++/CLI Pin
George L. Jackson24-Aug-07 12:56
George L. Jackson24-Aug-07 12:56 
GeneralRe: Want to draw a line on a Form with C++/CLI Pin
led mike27-Aug-07 5:13
led mike27-Aug-07 5:13 
GeneralRe: Want to draw a line on a Form with C++/CLI Pin
Luc Pattyn24-Aug-07 14:06
sitebuilderLuc Pattyn24-Aug-07 14:06 
GeneralRe: Want to draw a line on a Form with C++/CLI Pin
Mark Salsbery24-Aug-07 14:41
Mark Salsbery24-Aug-07 14:41 
QuestionMemory consumption issues (GC-related???) Pin
Xpnctoc24-Aug-07 4:07
Xpnctoc24-Aug-07 4:07 
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 consumption issues (GC-related???) Pin
led mike24-Aug-07 4:33
led mike24-Aug-07 4:33 
AnswerRe: Memory consumption issues (GC-related???) Pin
Mark Salsbery24-Aug-07 6:30
Mark Salsbery24-Aug-07 6:30 
GeneralRe: Memory consumption issues (GC-related???) Pin
led mike24-Aug-07 8:10
led mike24-Aug-07 8:10 
GeneralRe: Memory consumption issues (GC-related???) Pin
Mark Salsbery24-Aug-07 8:17
Mark Salsbery24-Aug-07 8:17 
GeneralRe: Memory consumption issues (GC-related???) Pin
Xpnctoc24-Aug-07 8:28
Xpnctoc24-Aug-07 8:28 
GeneralRe: Memory consumption issues (GC-related???) Pin
Mark Salsbery24-Aug-07 8:32
Mark Salsbery24-Aug-07 8:32 
GeneralRe: Memory consumption issues (GC-related???) Pin
led mike27-Aug-07 4:57
led mike27-Aug-07 4:57 
GeneralRe: Memory consumption issues (GC-related???) Pin
Xpnctoc24-Aug-07 8:27
Xpnctoc24-Aug-07 8:27 
GeneralRe: Memory consumption issues (GC-related???) Pin
George L. Jackson24-Aug-07 9:44
George L. Jackson24-Aug-07 9:44 
GeneralRe: Memory consumption issues (GC-related???) Pin
Mark Salsbery24-Aug-07 10:49
Mark Salsbery24-Aug-07 10:49 
GeneralRe: Memory consumption issues (GC-related???) Pin
George L. Jackson24-Aug-07 11:32
George L. Jackson24-Aug-07 11:32 
GeneralRe: Memory consumption issues (GC-related???) Pin
Xpnctoc25-Aug-07 4:08
Xpnctoc25-Aug-07 4:08 
GeneralRe: Memory consumption issues (GC-related???) Pin
George L. Jackson25-Aug-07 4:20
George L. Jackson25-Aug-07 4:20 
QuestionWrite to Access Database using C++ and OleDB connection Pin
Stefan Baens24-Aug-07 3:46
Stefan Baens24-Aug-07 3:46 
AnswerRe: Write to Access Database using C++ and OleDB connection Pin
led mike24-Aug-07 4:28
led mike24-Aug-07 4:28 
GeneralRe: Write to Access Database using C++ and OleDB connection Pin
iddqd51524-Aug-07 5:06
iddqd51524-Aug-07 5:06 
GeneralRe: Write to Access Database using C++ and OleDB connection Pin
led mike24-Aug-07 5:16
led mike24-Aug-07 5: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.