Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins2-Sep-10 14:17
Dave Calkins2-Sep-10 14:17 
AnswerRe: memory leak detection in unmanaged C++ MFC code Pin
Aescleal2-Sep-10 13:16
Aescleal2-Sep-10 13:16 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins2-Sep-10 14:18
Dave Calkins2-Sep-10 14:18 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
CPallini2-Sep-10 23:55
mveCPallini2-Sep-10 23:55 
AnswerRe: memory leak detection in unmanaged C++ MFC code Pin
viniaks2-Sep-10 17:06
viniaks2-Sep-10 17:06 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins3-Sep-10 14:09
Dave Calkins3-Sep-10 14:09 
AnswerRe: memory leak detection in unmanaged C++ MFC code Pin
Rick York3-Sep-10 6:56
mveRick York3-Sep-10 6:56 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins3-Sep-10 14:08
Dave Calkins3-Sep-10 14:08 
I've successfully used the built-in VS leak stuff with DEBUG_NEW, etc in the past. For this, though, its not reporting any leaks. However, when I load a file, then do file>>new and dispose of everything, then repeat the process, I see a roughly constant growth each time. I'm looking at the process private bytes counter.

I wrote a small test app which does HeapCreate/HeapAlloc/HeapFree/HeapDestroy and also new/delete. In either case, when I allocate a bunch of memory and then free it the private bytes immediately drops back down. Whereas in my app I get this persistent repeatable growth each time, yet the VS leak detection isn't kicking in.

I'm not at all concerned about memory being released back to the OS. If the heap manager is holding onto it after my app has freed it (HeapFree/delete) that's acceptable and its an OS issue. I'm worried about cases where I've allocated and not freed the memory myself (regardless of whether or not its been returned to the OS).
AnswerRe: memory leak detection in unmanaged C++ MFC code Pin
Blake Miller3-Sep-10 12:16
Blake Miller3-Sep-10 12:16 
GeneralRe: memory leak detection in unmanaged C++ MFC code Pin
Dave Calkins3-Sep-10 14:09
Dave Calkins3-Sep-10 14:09 
QuestionDirectory Info using GetFileInformationByHandleEx Pin
gothic_coder2-Sep-10 3:48
gothic_coder2-Sep-10 3:48 
AnswerRe: Directory Info using GetFileInformationByHandleEx Pin
«_Superman_»2-Sep-10 17:45
professional«_Superman_»2-Sep-10 17:45 
GeneralRe: Directory Info using GetFileInformationByHandleEx Pin
gothic_coder2-Sep-10 21:02
gothic_coder2-Sep-10 21:02 
QuestionRe: Directory Info using GetFileInformationByHandleEx Pin
David Crow3-Sep-10 3:18
David Crow3-Sep-10 3:18 
AnswerRe: Directory Info using GetFileInformationByHandleEx Pin
gothic_coder3-Sep-10 21:36
gothic_coder3-Sep-10 21:36 
QuestionDropping emails onto C++ MFC application Pin
William Engberts2-Sep-10 2:07
William Engberts2-Sep-10 2:07 
AnswerRe: Dropping emails onto C++ MFC application Pin
Code-o-mat2-Sep-10 4:03
Code-o-mat2-Sep-10 4:03 
QuestionDate Format Pin
john56322-Sep-10 1:32
john56322-Sep-10 1:32 
AnswerRe: Date Format Pin
CPallini2-Sep-10 1:44
mveCPallini2-Sep-10 1:44 
QuestionStack Overflow Pin
T.RATHA KRISHNAN1-Sep-10 23:14
T.RATHA KRISHNAN1-Sep-10 23:14 
QuestionRe: Stack Overflow Pin
CPallini1-Sep-10 23:21
mveCPallini1-Sep-10 23:21 
AnswerRe: Stack Overflow Pin
T.RATHA KRISHNAN1-Sep-10 23:29
T.RATHA KRISHNAN1-Sep-10 23:29 
GeneralRe: Stack Overflow Pin
CPallini1-Sep-10 23:46
mveCPallini1-Sep-10 23:46 
GeneralRe: Stack Overflow Pin
T.RATHA KRISHNAN1-Sep-10 23:59
T.RATHA KRISHNAN1-Sep-10 23:59 
GeneralRe: Stack Overflow Pin
CPallini2-Sep-10 0:07
mveCPallini2-Sep-10 0: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.