Click here to Skip to main content
15,914,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem_With_MSVC6_Linker Pin
KEL310-Jul-07 7:57
KEL310-Jul-07 7:57 
AnswerRe: Problem_With_MSVC6_Linker Pin
Bogdan Apostol10-Jul-07 9:34
Bogdan Apostol10-Jul-07 9:34 
Questionhow to delay in the middle of the code without cpu usage Pin
V_shr6-Jul-07 4:32
V_shr6-Jul-07 4:32 
AnswerRe: how to delay in the middle of the code without cpu usage Pin
Chris Losinger6-Jul-07 4:53
professionalChris Losinger6-Jul-07 4:53 
GeneralRe: how to delay in the middle of the code without cpu usage Pin
V_shr6-Jul-07 5:23
V_shr6-Jul-07 5:23 
AnswerRe: how to delay in the middle of the code without cpu usage Pin
Rage6-Jul-07 5:12
professionalRage6-Jul-07 5:12 
GeneralRe: how to delay in the middle of the code without cpu usage Pin
V_shr6-Jul-07 5:39
V_shr6-Jul-07 5:39 
Questionhow to print application memory Pin
zecodela6-Jul-07 4:23
zecodela6-Jul-07 4:23 
Hi All,
i have an MFC application receive event message and based on the message type to new "Order" object. the created object stored in a map and never delete thro' the application cycle.
my "Order" class size only < 1k byte. however, the application memory grow as 100k per order inputted.

i added the CRT memory leak statement (use _CrtMemDifference, _CrtMemCheckpoint) to see the difference after executed function for each event. the result can show the object size (Order class) i created. however, the 100K grow rate still not able to show.

questions:
A) i wonder i dont know what reflect in those functions. anyone have idea on this?
B) more effective question is how can i print the memory size of my application?
so, i can check the memory usage difference for each big function call and drill down the problematic function.
like this :
printf("b4 handler"); printMemSize();
BigHandler();
printf("after handler"); printMemSize();

any reply will be highly appreciated!
thanks!
jim
AnswerRe: how to print application memory Pin
Mark Salsbery6-Jul-07 5:39
Mark Salsbery6-Jul-07 5:39 
QuestionRe: how to print application memory Pin
zecodela6-Jul-07 15:16
zecodela6-Jul-07 15:16 
AnswerRe: how to print application memory Pin
Mark Salsbery6-Jul-07 15:28
Mark Salsbery6-Jul-07 15:28 
GeneralRe: how to print application memory Pin
zecodela6-Jul-07 15:31
zecodela6-Jul-07 15:31 
GeneralRe: how to print application memory Pin
epankaj9-Jul-09 1:38
epankaj9-Jul-09 1:38 
QuestionHow to get the name of the current function dynamically/statically Pin
AdAkta6-Jul-07 3:34
AdAkta6-Jul-07 3:34 
AnswerRe: How to get the name of the current function dynamically/statically Pin
David Crow6-Jul-07 3:41
David Crow6-Jul-07 3:41 
GeneralRe: How to get the name of the current function dynamically/statically Pin
AdAkta12-Jul-07 1:46
AdAkta12-Jul-07 1:46 
AnswerRe: How to get the name of the current function dynamically/statically Pin
Matthew Faithfull6-Jul-07 4:11
Matthew Faithfull6-Jul-07 4:11 
GeneralRe: How to get the name of the current function dynamically/statically Pin
AdAkta12-Jul-07 1:44
AdAkta12-Jul-07 1:44 
GeneralRe: How to get the name of the current function dynamically/statically Pin
Matthew Faithfull12-Jul-07 3:32
Matthew Faithfull12-Jul-07 3:32 
QuestionHow to correctly trap "Enter" key in MFC dialog ? Pin
ldsdbomber6-Jul-07 3:09
ldsdbomber6-Jul-07 3:09 
AnswerRe: How to correctly trap "Enter" key in MFC dialog ? Pin
David Crow6-Jul-07 3:13
David Crow6-Jul-07 3:13 
GeneralRe: How to correctly trap "Enter" key in MFC dialog ? Pin
ldsdbomber6-Jul-07 3:28
ldsdbomber6-Jul-07 3:28 
QuestionRe: How to correctly trap "Enter" key in MFC dialog ? Pin
David Crow6-Jul-07 3:35
David Crow6-Jul-07 3:35 
AnswerRe: How to correctly trap "Enter" key in MFC dialog ? Pin
ldsdbomber6-Jul-07 3:38
ldsdbomber6-Jul-07 3:38 
GeneralRe: How to correctly trap "Enter" key in MFC dialog ? Pin
David Crow6-Jul-07 3:42
David Crow6-Jul-07 3:42 

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.