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

C / C++ / MFC

 
GeneralConsole to win app Pin
dr.eu11-Feb-04 2:36
dr.eu11-Feb-04 2:36 
GeneralRe: Console to win app Pin
Mike Dimmick11-Feb-04 2:54
Mike Dimmick11-Feb-04 2:54 
GeneralRe: Console to win app Pin
dr.eu11-Feb-04 3:12
dr.eu11-Feb-04 3:12 
GeneralRe: Console to win app Pin
jmkhael11-Feb-04 3:25
jmkhael11-Feb-04 3:25 
GeneralPDF Viewer Pin
Mahesh Varma11-Feb-04 2:32
Mahesh Varma11-Feb-04 2:32 
GeneralRe: PDF Viewer Pin
Joel Lucsy11-Feb-04 2:57
Joel Lucsy11-Feb-04 2:57 
GeneralHelp with memory leak warning message Pin
J.B.11-Feb-04 2:15
J.B.11-Feb-04 2:15 
GeneralRe: Help with memory leak warning message Pin
Antti Keskinen11-Feb-04 2:31
Antti Keskinen11-Feb-04 2:31 
The memory leaks are pretty small by size, this suggests that the unfreed objects are some small or tiny variables. Try double-checking your source files that for each memory reserving call (new or malloc) you call the respective deletion call (delete or free).

The final option is to run the debugger, copy each new reserved memory's pointer's target address into paper and then compare these with the posted object addresses. This is tedious and long-term work but allows you to pinpoint what pointers are not freed properly.

Remember that the most common cause for these problems is that you have an object that reserves memory dynamically in it's constructor, but does not free it in the destructor or during it's life cycle. Once again, check your code.

Alternatively, if you have money to spare, try investing into some memory-validation program, which are available through CodeProject partners as well. There are many available, and they don't even cost too much.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Help with memory leak warning message Pin
J.B.11-Feb-04 5:21
J.B.11-Feb-04 5:21 
GeneralRe: Help with memory leak warning message Pin
Antti Keskinen11-Feb-04 6:34
Antti Keskinen11-Feb-04 6:34 
GeneralRe: Help with memory leak warning message (solved) Pin
J.B.11-Feb-04 17:11
J.B.11-Feb-04 17:11 
GeneralRe: Help with memory leak warning message (solved) Pin
Antti Keskinen11-Feb-04 18:41
Antti Keskinen11-Feb-04 18:41 
GeneralRe: Help with memory leak warning message (solved) Pin
J.B.12-Feb-04 6:04
J.B.12-Feb-04 6:04 
GeneralRe: Help with memory leak warning message Pin
Peter Weyzen11-Feb-04 7:42
Peter Weyzen11-Feb-04 7:42 
GeneralRe: Help with memory leak warning message Pin
Graham Bradshaw11-Feb-04 3:49
Graham Bradshaw11-Feb-04 3:49 
GeneralReading the USB port Pin
Demian Panello11-Feb-04 2:01
Demian Panello11-Feb-04 2:01 
GeneralRe: Reading the USB port Pin
Antti Keskinen11-Feb-04 2:35
Antti Keskinen11-Feb-04 2:35 
GeneralRe: Reading the USB port Pin
Demian Panello11-Feb-04 4:54
Demian Panello11-Feb-04 4:54 
Generaledk.h Pin
barzw11-Feb-04 1:08
barzw11-Feb-04 1:08 
GeneralRe: edk.h Pin
Michael P Butler11-Feb-04 1:18
Michael P Butler11-Feb-04 1:18 
Generalmachine code Pin
Anonymous11-Feb-04 0:53
Anonymous11-Feb-04 0:53 
GeneralRe: machine code Pin
Prakash Nadar11-Feb-04 1:04
Prakash Nadar11-Feb-04 1:04 
GeneralRe: machine code Pin
Anonymous11-Feb-04 1:13
Anonymous11-Feb-04 1:13 
GeneralRe: machine code Pin
jmkhael11-Feb-04 1:30
jmkhael11-Feb-04 1:30 
GeneralRe: machine code Pin
Anonymous11-Feb-04 1:37
Anonymous11-Feb-04 1:37 

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.