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

C / C++ / MFC

 
AnswerRe: Confused with destructor Pin
Erudite_Eric17-Dec-12 4:54
Erudite_Eric17-Dec-12 4:54 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 5:01
Super Lloyd17-Dec-12 5:01 
GeneralRe: Confused with destructor Pin
jschell17-Dec-12 8:31
jschell17-Dec-12 8:31 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 16:59
Super Lloyd17-Dec-12 16:59 
GeneralRe: Confused with destructor Pin
megaadam18-Dec-12 3:51
professionalmegaadam18-Dec-12 3:51 
GeneralRe: Confused with destructor Pin
Stefan_Lang19-Dec-12 5:33
Stefan_Lang19-Dec-12 5:33 
GeneralRe: Confused with destructor Pin
Super Lloyd19-Dec-12 11:35
Super Lloyd19-Dec-12 11:35 
GeneralRe: Confused with destructor Pin
Erudite_Eric20-Dec-12 23:20
Erudite_Eric20-Dec-12 23:20 
Yes, I was talking generally and as you say the shared_ptr class does this for you so no need to worry about it.

As for things like handles, in your example, it is best to call a close on them before your class destructor is called, ie, do your tidy up as early as you can.
==============================

Nothing to say.

AnswerRe: Confused with destructor Pin
Stephen Hewitt17-Dec-12 17:10
Stephen Hewitt17-Dec-12 17:10 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 21:41
Super Lloyd17-Dec-12 21:41 
Questionfuzzy logic code Pin
robot2916-Dec-12 3:10
robot2916-Dec-12 3:10 
AnswerRe: fuzzy logic code Pin
Richard MacCutchan16-Dec-12 4:25
mveRichard MacCutchan16-Dec-12 4:25 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:01
robot2920-Dec-12 4:01 
GeneralRe: fuzzy logic code Pin
Richard MacCutchan20-Dec-12 4:16
mveRichard MacCutchan20-Dec-12 4:16 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 5:26
robot2920-Dec-12 5:26 
GeneralRe: fuzzy logic code Pin
Richard MacCutchan20-Dec-12 5:37
mveRichard MacCutchan20-Dec-12 5:37 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 5:40
robot2920-Dec-12 5:40 
GeneralRe: fuzzy logic code Pin
David Crow16-Dec-12 17:20
David Crow16-Dec-12 17:20 
AnswerRe: fuzzy logic code Pin
Joe Woodbury16-Dec-12 19:01
professionalJoe Woodbury16-Dec-12 19:01 
AnswerRe: fuzzy logic code Pin
PecuniousPete16-Dec-12 20:51
PecuniousPete16-Dec-12 20:51 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:07
robot2920-Dec-12 4:07 
AnswerRe: fuzzy logic code Pin
CPallini16-Dec-12 22:40
mveCPallini16-Dec-12 22:40 
GeneralRe: fuzzy logic code Pin
robot2920-Dec-12 4:10
robot2920-Dec-12 4:10 
QuestionRe: fuzzy logic code Pin
CPallini20-Dec-12 6:25
mveCPallini20-Dec-12 6:25 
AnswerRe: fuzzy logic code Pin
robot2920-Dec-12 6:47
robot2920-Dec-12 6:47 

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.