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

Managed C++/CLI

 
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 
I am aware of a few optimizations such as the use of StringBuilder. The behavior I noted is more apparent in items that are beyond my control -- such as the Menu control. Why should more memory be allocated every time a fly-out is invoked, yet when the fly-out disappears no memory is ever released?

However, I posted a similar thread on another board, and one of the respondants said that I'm looking at this all wrong. I have only Task Manager to gauge memory use, but he said I can't do that because a .NET application runs inside of a "virtual machine". Therefore Task Manager shows only what the VM is reserving, not necessarily what I'm using.

I only half-way buy this idea. Regardless whether .NET is running a VM or not, the fact is that every time I invoke a menu, or a dialog box, the Task Manager numbers go up. The respondant's point was that the number in TM will NOT go down because the VM has reserved that memory. Well fine. But if the memory is reserved, they why does it need to reserve even MORE memory the next time I trigger a fly-out menu? The memory was already reserved once. If the memory was truly freed after the fly-out disappeared the first time, the virt. mach. should not need to compound its memory reservation.

From that angle, it seems to me that Task Manager is indicating there is something wrong with .NET's virt. machine. BUT Mark has a very valid point that if there was truly something to be worried about, it seems like there would be a lot more people screaming about it.

The overwhelming opinion on this and other message boards is that I'm worried about nothing. I guess I don't know enough about .NET internals. All I know is that the numbers I saw in Task Mgr don't make a lot of sense, so I thought I'd inquire about it.
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 
GeneralRe: Write to Access Database using C++ and OleDB connection Pin
Mark Salsbery24-Aug-07 6:34
Mark Salsbery24-Aug-07 6:34 
GeneralRe: Write to Access Database using C++ and OleDB connection Pin
led mike24-Aug-07 8:00
led mike24-Aug-07 8:00 
AnswerRe: Write to Access Database using C++ and OleDB connection Pin
led mike24-Aug-07 5:27
led mike24-Aug-07 5:27 
GeneralRe: Write to Access Database using C++ and OleDB connection Pin
Stefan Baens25-Aug-07 0:48
Stefan Baens25-Aug-07 0:48 
GeneralRe: Write to Access Database using C++ and OleDB connection Pin
Stefan Baens26-Aug-07 20:39
Stefan Baens26-Aug-07 20:39 
QuestionListview header spanning 2 rows Pin
kani9823-Aug-07 7:42
kani9823-Aug-07 7:42 
AnswerRe: Listview header spanning 2 rows Pin
Giorgi Dalakishvili23-Aug-07 8:11
mentorGiorgi Dalakishvili23-Aug-07 8:11 
GeneralRe: Listview header spanning 2 rows Pin
kani9823-Aug-07 8:31
kani9823-Aug-07 8:31 
AnswerRe: Listview header spanning 2 rows Pin
Mark Salsbery23-Aug-07 10:21
Mark Salsbery23-Aug-07 10:21 
GeneralRe: Listview header spanning 2 rows Pin
kani9823-Aug-07 11:54
kani9823-Aug-07 11:54 
GeneralRe: Listview header spanning 2 rows Pin
Mark Salsbery23-Aug-07 12:01
Mark Salsbery23-Aug-07 12:01 
QuestionTextBox control populates but does not display Pin
BuckBrown22-Aug-07 11:37
BuckBrown22-Aug-07 11:37 

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.