Click here to Skip to main content
15,887,430 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Dynamic Arrays...... Pin
Bob Stanneveld5-Aug-05 3:44
Bob Stanneveld5-Aug-05 3:44 
GeneralRe: Dynamic Arrays...... Pin
Roland Pibinger5-Aug-05 8:43
Roland Pibinger5-Aug-05 8:43 
QuestionTo get message from Windows if user writes on hard disk? Pin
sannik5-Aug-05 2:07
sannik5-Aug-05 2:07 
AnswerRe: To get message from Windows if user writes on hard disk? Pin
koothkeeper5-Aug-05 3:24
professionalkoothkeeper5-Aug-05 3:24 
GeneralCPropertyPage's caption Pin
LiYS5-Aug-05 1:31
LiYS5-Aug-05 1:31 

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.