Click here to Skip to main content
16,007,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC++6: Meaning of memory leaks that are dumped when I close the app. Pin
Joan M29-Dec-06 2:01
professionalJoan M29-Dec-06 2:01 
AnswerRe: VC++6: Meaning of memory leaks that are dumped when I close the app. Pin
CPallini29-Dec-06 2:34
mveCPallini29-Dec-06 2:34 
GeneralRe: VC++6: Meaning of memory leaks that are dumped when I close the app. Pin
Joan M29-Dec-06 2:38
professionalJoan M29-Dec-06 2:38 
GeneralRe: VC++6: Meaning of memory leaks that are dumped when I close the app. Pin
James R. Twine29-Dec-06 5:12
James R. Twine29-Dec-06 5:12 
GeneralRe: VC++6: Meaning of memory leaks that are dumped when I close the app. Pin
Gary R. Wheeler29-Dec-06 5:19
Gary R. Wheeler29-Dec-06 5:19 
GeneralRe: VC++6: Meaning of memory leaks that are dumped when I close the app. Pin
Joan M29-Dec-06 2:39
professionalJoan M29-Dec-06 2:39 
GeneralRe: VC++6: Meaning of memory leaks that are dumped when I close the app. Pin
CPallini29-Dec-06 2:57
mveCPallini29-Dec-06 2:57 
GeneralRe: VC++6: Meaning of memory leaks that are dumped when I close the app. Pin
James R. Twine29-Dec-06 5:15
James R. Twine29-Dec-06 5:15 
   And be sure that you free them by using delete [] pStr instead of delete pStr otherwise you will only drop the number of leaks to 19! Smile | :)

   N.B. not using delete[] in this case usually results (in VC++) in the memory being freed, but only the first object's destructor being called.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

QuestionMFC DLL question Pin
FredrickNorge29-Dec-06 1:18
FredrickNorge29-Dec-06 1:18 
AnswerRe: MFC DLL question Pin
Don Box29-Dec-06 1:30
Don Box29-Dec-06 1:30 
AnswerRe: MFC DLL question Pin
Joan M29-Dec-06 2:03
professionalJoan M29-Dec-06 2:03 
GeneralRe: MFC DLL question Pin
FredrickNorge29-Dec-06 2:26
FredrickNorge29-Dec-06 2:26 
Questionc++ Pin
manu_220529-Dec-06 1:13
manu_220529-Dec-06 1:13 
QuestionRe: c++ Pin
CPallini29-Dec-06 2:22
mveCPallini29-Dec-06 2:22 
AnswerRe: c++ Pin
Nemanja Trifunovic29-Dec-06 6:35
Nemanja Trifunovic29-Dec-06 6:35 
AnswerRe: c++ Pin
Hamid_RT29-Dec-06 17:22
Hamid_RT29-Dec-06 17:22 
QuestionVC++ Pin
Sherin Iranimose29-Dec-06 0:58
Sherin Iranimose29-Dec-06 0:58 
AnswerRe: VC++ Pin
_AnsHUMAN_ 29-Dec-06 1:41
_AnsHUMAN_ 29-Dec-06 1:41 
GeneralRe: VC++ Pin
Sherin Iranimose1-Jan-07 1:13
Sherin Iranimose1-Jan-07 1:13 
AnswerRe: VC++ Pin
Joan M29-Dec-06 2:13
professionalJoan M29-Dec-06 2:13 
AnswerRe: VC++ Pin
Hamid_RT29-Dec-06 17:30
Hamid_RT29-Dec-06 17:30 
GeneralRe:VC++ Pin
Sherin Iranimose1-Jan-07 1:09
Sherin Iranimose1-Jan-07 1:09 
QuestionNavigation Error Pin
Shouvik Das29-Dec-06 0:05
Shouvik Das29-Dec-06 0:05 
QuestionRe: Navigation Error Pin
prasad_som29-Dec-06 0:42
prasad_som29-Dec-06 0:42 
GeneralRe: Navigation Error Pin
Shouvik Das29-Dec-06 0:48
Shouvik Das29-Dec-06 0:48 

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.