Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Upgraded to 2005, now my code is broke. PLEASE HELP! Pin
Mark Salsbery17-Nov-06 7:00
Mark Salsbery17-Nov-06 7:00 
Questionhyperthreading Pin
vineeshV17-Nov-06 4:17
vineeshV17-Nov-06 4:17 
Questionthread demon Pin
zizzzz17-Nov-06 3:00
zizzzz17-Nov-06 3:00 
AnswerRe: thread demon Pin
toxcct17-Nov-06 3:25
toxcct17-Nov-06 3:25 
GeneralRe: thread demon Pin
zizzzz17-Nov-06 3:44
zizzzz17-Nov-06 3:44 
QuestionCRichEditCtrl problem Pin
prithaa17-Nov-06 2:12
prithaa17-Nov-06 2:12 
AnswerRe: CRichEditCtrl problem Pin
Parthi_Appu17-Nov-06 2:20
Parthi_Appu17-Nov-06 2:20 
QuestionSomething to understand to new and delete!? Pin
bosfan17-Nov-06 2:06
bosfan17-Nov-06 2:06 
Hello comunity

i use many times in my project "new" to create an object, in my case this is own class derived from
CObject! So, how to cleany the heap properly??
I hope that is my question is easy to understand?! Confused | :confused:

What ist different between this two my samples:
CMyClass* pMyClass = new CMyClass();
// and later
// 
delete pMyClass;

// and sample two:
CMyClass* pMyClass = new CMyClass();
// and later
pMyClass = NULL; // what about this line??? 
delete pMyClass;


thanks in advance
break;
AnswerRe: Something to understand to new and delete!? Pin
Cedric Moonen17-Nov-06 2:14
Cedric Moonen17-Nov-06 2:14 
AnswerRe: Something to understand to new and delete!? Pin
bosfan17-Nov-06 2:34
bosfan17-Nov-06 2:34 
GeneralRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:30
Zac Howland17-Nov-06 5:30 
GeneralRe: Something to understand to new and delete!? Pin
Cedric Moonen17-Nov-06 6:14
Cedric Moonen17-Nov-06 6:14 
AnswerRe: Something to understand to new and delete!? Pin
toxcct17-Nov-06 2:16
toxcct17-Nov-06 2:16 
GeneralRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:31
Zac Howland17-Nov-06 5:31 
GeneralRe: Something to understand to new and delete!? Pin
toxcct17-Nov-06 8:37
toxcct17-Nov-06 8:37 
AnswerRe: Something to understand to new and delete!? Pin
Roger Stoltz17-Nov-06 2:28
Roger Stoltz17-Nov-06 2:28 
GeneralRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:34
Zac Howland17-Nov-06 5:34 
GeneralRe: Something to understand to new and delete!? Pin
Roger Stoltz17-Nov-06 5:37
Roger Stoltz17-Nov-06 5:37 
GeneralRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:55
Zac Howland17-Nov-06 5:55 
GeneralRe: Something to understand to new and delete!? Pin
David Crow17-Nov-06 6:30
David Crow17-Nov-06 6:30 
AnswerRe: Something to understand to new and delete!? Pin
Viorel.17-Nov-06 2:35
Viorel.17-Nov-06 2:35 
GeneralRe: Something to understand to new and delete!? Pin
bosfan17-Nov-06 2:56
bosfan17-Nov-06 2:56 
GeneralRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:36
Zac Howland17-Nov-06 5:36 
AnswerRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:26
Zac Howland17-Nov-06 5:26 
QuestionOwn Messages Pin
baerten17-Nov-06 1:20
baerten17-Nov-06 1:20 

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.