Click here to Skip to main content
       

C / C++ / MFC

 
QuestionConfused with destructor PinmemberSuper Lloyd17-Dec-12 3:33 
AnswerRe: Confused with destructor PinmemberErudite_Eric17-Dec-12 5:54 
GeneralRe: Confused with destructor PinmemberSuper Lloyd17-Dec-12 6:01 
GeneralRe: Confused with destructor Pinmemberjschell17-Dec-12 9:31 
Super Lloyd wrote:
but I didn't use new...

 
That has nothing to do with it.
 
The use of 'new' is specific to a certain kind of finite resource (memory).
Your class on the other hand must manage ALL of the resources that it owns. So it must clean it up.
GeneralRe: Confused with destructor PinmemberSuper Lloyd17-Dec-12 17:59 
GeneralRe: Confused with destructor Pinmembermegaadam18-Dec-12 4:51 
GeneralRe: Confused with destructor PinmemberStefan_Lang19-Dec-12 6:33 
GeneralRe: Confused with destructor PinmemberSuper Lloyd19-Dec-12 12:35 
GeneralRe: Confused with destructor PinmemberErudite_Eric21-Dec-12 0:20 
AnswerRe: Confused with destructor PinmemberStephen Hewitt17-Dec-12 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 29 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid