Click here to Skip to main content
15,906,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Common Language Runtime Debugging Services Error Pin
Trollslayer5-Aug-05 10:20
mentorTrollslayer5-Aug-05 10:20 
GeneralRe: Common Language Runtime Debugging Services Error Pin
sysx5-Aug-05 15:45
sysx5-Aug-05 15:45 
GeneralRe: Common Language Runtime Debugging Services Error Pin
sysx6-Aug-05 7:19
sysx6-Aug-05 7:19 
GeneralDrawing in a Memory DC Pin
Axonn Echysttas5-Aug-05 6:59
Axonn Echysttas5-Aug-05 6:59 
GeneralRe: Drawing in a Memory DC Pin
Jose Lamas Rios6-Aug-05 16:46
Jose Lamas Rios6-Aug-05 16:46 
Generalcomplex numbers error Pin
Oriented5-Aug-05 6:00
Oriented5-Aug-05 6:00 
GeneralRe: complex numbers error Pin
BlackDice5-Aug-05 7:36
BlackDice5-Aug-05 7:36 
Generalit dosn't work either!! Pin
Oriented5-Aug-05 8:03
Oriented5-Aug-05 8:03 
GeneralRe: complex numbers error Pin
Gary R. Wheeler5-Aug-05 15:36
Gary R. Wheeler5-Aug-05 15:36 
QuestionInterlockedExchangeAdd - how much contention? Pin
peterchen5-Aug-05 5:33
peterchen5-Aug-05 5:33 
GeneralRe: InterlockedExchangeAdd - how much contention? Pin
Alexander M.,7-Aug-05 4:46
Alexander M.,7-Aug-05 4:46 
QuestionHow to find the memory usage programatically? Pin
appuanbu5-Aug-05 5:01
appuanbu5-Aug-05 5:01 
AnswerRe: How to find the memory usage programatically? Pin
Blake Miller5-Aug-05 6:09
Blake Miller5-Aug-05 6:09 
You are not likely to see much difference for a 'new' on a single int variable unless your application is right on the threshold of an internal allocation block.

If you program is that sensitive to memory, you will probably have more memory trouble trying to find out how much remains than not doing so, since the act of looking up the memory and tracking it will consume memory itself!

Having said that, you can use the:

1. C runtime heap walking routines - these will tell yu what C runtime library allcoations posess

2. Win32 heap walking routines - what memory allcoations your process has made

3. Process memory usage for your entire process using VirtualQuery - find out where DLL are located and which ones are loaded, executable code image memory, reserved memory, commited memory, etc.


GeneralRe: How to find the memory usage programatically? Pin
appuanbu5-Aug-05 6:18
appuanbu5-Aug-05 6:18 
GeneralRe: How to find the memory usage programatically? Pin
Blake Miller8-Aug-05 6:26
Blake Miller8-Aug-05 6:26 
Generalcall graph Pin
jaycush5-Aug-05 4:57
jaycush5-Aug-05 4:57 
GeneralRe: call graph Pin
RChin5-Aug-05 5:16
RChin5-Aug-05 5:16 
GeneralRe: call graph Pin
jaycush5-Aug-05 5:30
jaycush5-Aug-05 5:30 
GeneralGDI+ stretching Pin
lroels5-Aug-05 4:56
lroels5-Aug-05 4:56 
QuestionWIN32 API question: WNDCLASS.cbWndExtra ? Pin
Anonymous5-Aug-05 4:33
Anonymous5-Aug-05 4:33 
AnswerRe: WIN32 API question: WNDCLASS.cbWndExtra ? Pin
Blake Miller5-Aug-05 6:13
Blake Miller5-Aug-05 6:13 
AnswerRe: WIN32 API question: WNDCLASS.cbWndExtra ? Pin
Blake Miller5-Aug-05 6:14
Blake Miller5-Aug-05 6:14 
QuestionAbout Word Addin of adding a bmp? Pin
sharkmouse5-Aug-05 3:14
sharkmouse5-Aug-05 3:14 
GeneralDynamic Arrays...... Pin
Raza56805-Aug-05 3:10
Raza56805-Aug-05 3:10 
GeneralRe: Dynamic Arrays...... Pin
ThatsAlok5-Aug-05 3:14
ThatsAlok5-Aug-05 3:14 

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.