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

Managed C++/CLI

 
QuestionMemory consumption issues (GC-related???) Pin
Xpnctoc24-Aug-07 4:07
Xpnctoc24-Aug-07 4:07 
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 
Mark Salsbery wrote:
How high does it climb? Infinitely?


Well I get bored before I have any conclusive data. No doubt there are far better methods to actually test like with a profiler etc.

So anyway this is mildly interesting I have a utility app that I use to work with XML files XPath statements etc. I initially wrote it years ago in VC++ it uses MSXML and hosts the browser for one of the views. So like a year ago or so I remade it using C#. Now the new version is slightly more feature rich from a UI perspective and you would therefore expect a larger memory footprint but all in all they are very similar.

So you start the old VC++ app and it loads in at around 14 meg. After opening a few files and manipulating the UI to view stuff etc it grows up around 18 meg and you can see it freeing memory and it settles down just over 17 megs.

The C# app loads at just over 26 megs and you can get it to climb from there. But if you minimize it it drops to 1.1 meg! Then when you restore it it jumps up to 12 meg and as you begin to work it (open files and run XPath queries, manipulate the views etc.), it climbs up to just over 18 meg and you can see it free memory back down to just under 18 megs.

So overall the C# app has slightly more bells and whistles and uses a slightly larger memory footprint once you minimize it and restore it. I have no idea what that is all about but I wouldn't expect significant memory consumption from a .NET Windows Forms app. The UI is definitely not as responsive as the native app but memory consumption I would have to say is very similar.

Oh yeah I am running XP Pro



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

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.