Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File Reading Issue Pin
shaibee11-Aug-08 22:33
shaibee11-Aug-08 22:33 
GeneralRe: File Reading Issue Pin
David Crow12-Aug-08 3:38
David Crow12-Aug-08 3:38 
AnswerRe: File Reading Issue Pin
kbshibukumar11-Aug-08 23:49
kbshibukumar11-Aug-08 23:49 
AnswerRe: File Reading Issue Pin
Bram van Kampen12-Aug-08 9:26
Bram van Kampen12-Aug-08 9:26 
QuestionCDialog Destroy memory leaks! please help.. Pin
gamja11-Aug-08 21:39
gamja11-Aug-08 21:39 
AnswerRe: CDialog Destroy memory leaks! please help.. Pin
toxcct11-Aug-08 21:47
toxcct11-Aug-08 21:47 
AnswerRe: CDialog Destroy memory leaks! please help.. Pin
sashoalm11-Aug-08 21:47
sashoalm11-Aug-08 21:47 
AnswerRe: CDialog Destroy memory leaks! please help.. Pin
krmed12-Aug-08 2:12
krmed12-Aug-08 2:12 
If you believe you have memory leaks by looking at the Task Manager, you cannot trust the TM to tell you much about memory usage.

The code you've posted is fine, and doesn't leak memory. The Task Manager reports the amount of memory allocated to your process (the working set). When you initially release memory (no longer need it) the task manager does not immediately return that memory to available space - it holds on to it for a while.

You can probably see this if you display your dialog and then close it (you'll see that 4KB in the Task Manager). Next, minimize your application window and watch the task manager, then restore your window.

Hope that helps.

BTW - your PostNCDestroy is fine.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

QuestionRe: CDialog Destroy memory leaks! please help.. Pin
David Crow12-Aug-08 3:30
David Crow12-Aug-08 3:30 
AnswerRe: thx all, but still problem.. Pin
gamja12-Aug-08 4:04
gamja12-Aug-08 4:04 
QuestionCreating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 21:22
Sangeetha_J11-Aug-08 21:22 
AnswerRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 21:32
toxcct11-Aug-08 21:32 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 21:50
Sangeetha_J11-Aug-08 21:50 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 21:52
toxcct11-Aug-08 21:52 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 22:06
Sangeetha_J11-Aug-08 22:06 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 22:10
toxcct11-Aug-08 22:10 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
Sangeetha_J11-Aug-08 22:19
Sangeetha_J11-Aug-08 22:19 
GeneralRe: Creating a dll using Visual C++ 2005 Pin
toxcct11-Aug-08 22:22
toxcct11-Aug-08 22:22 
AnswerRe: Creating a dll using Visual C++ 2005 Pin
noxmortis12-Aug-08 4:59
noxmortis12-Aug-08 4:59 
QuestionHello how to redirect the function's return address to your own function address? Pin
nah133711-Aug-08 21:15
nah133711-Aug-08 21:15 
AnswerRe: Hello how to redirect the function's return address to your own function address? Pin
toxcct11-Aug-08 21:31
toxcct11-Aug-08 21:31 
GeneralRe: Hello how to redirect the function's return address to your own function address? Pin
nah133711-Aug-08 23:52
nah133711-Aug-08 23:52 
GeneralRe: Hello how to redirect the function's return address to your own function address? Pin
toxcct11-Aug-08 23:54
toxcct11-Aug-08 23:54 
GeneralRe: Hello how to redirect the function's return address to your own function address? Pin
nah133712-Aug-08 0:00
nah133712-Aug-08 0:00 
GeneralRe: Hello how to redirect the function's return address to your own function address? Pin
Bram van Kampen12-Aug-08 11:07
Bram van Kampen12-Aug-08 11:07 

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.