Click here to Skip to main content
15,925,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondelete efficiency question Pin
followait14-Aug-08 16:23
followait14-Aug-08 16:23 
AnswerRe: delete efficiency question Pin
Mark Salsbery14-Aug-08 16:27
Mark Salsbery14-Aug-08 16:27 
AnswerRe: delete efficiency question Pin
Jijo.Raj14-Aug-08 19:23
Jijo.Raj14-Aug-08 19:23 
GeneralRe: delete efficiency question Pin
Stephen Hewitt14-Aug-08 21:16
Stephen Hewitt14-Aug-08 21:16 
GeneralRe: delete efficiency question Pin
Roger Stoltz14-Aug-08 21:38
Roger Stoltz14-Aug-08 21:38 
GeneralRe: delete efficiency question Pin
Stephen Hewitt14-Aug-08 21:40
Stephen Hewitt14-Aug-08 21:40 
GeneralRe: delete efficiency question Pin
Jijo.Raj15-Aug-08 1:15
Jijo.Raj15-Aug-08 1:15 
GeneralRe: delete efficiency question Pin
Mark Salsbery15-Aug-08 5:07
Mark Salsbery15-Aug-08 5:07 
Hi Steve,

I saw your reply to me. My thinking was that doing the
test for null yourself would avoid the function call to the
delete operator. That was the basis of my guess.

The machine code above is for the "if (p) delete p;" case, yes?
Or does the compiler build it that way with just "delete p"?

Sure I can look myself, but you already have Smile | :)

Cheers,
Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: delete efficiency question Pin
Roger Stoltz15-Aug-08 5:19
Roger Stoltz15-Aug-08 5:19 
GeneralRe: delete efficiency question Pin
Mark Salsbery15-Aug-08 6:01
Mark Salsbery15-Aug-08 6:01 
GeneralRe: delete efficiency question Pin
Stephen Hewitt17-Aug-08 15:46
Stephen Hewitt17-Aug-08 15:46 
Questionapahce sever - writestring - assertion failed Pin
simon alec smith14-Aug-08 14:45
simon alec smith14-Aug-08 14:45 
QuestionAccess Violation error in MFC Pin
Larry Mills Sr14-Aug-08 7:03
Larry Mills Sr14-Aug-08 7:03 
AnswerRe: Access Violation error in MFC Pin
Reagan Conservative14-Aug-08 8:29
Reagan Conservative14-Aug-08 8:29 
GeneralRe: Access Violation error in MFC Pin
Larry Mills Sr14-Aug-08 10:05
Larry Mills Sr14-Aug-08 10:05 
QuestionHow to get SysMonthCal32 to display in the dialog font when a theme is active? Pin
Keith Worden14-Aug-08 6:52
Keith Worden14-Aug-08 6:52 
QuestionASp.NEt how to delete a row from a grid Pin
reogeo200814-Aug-08 6:28
reogeo200814-Aug-08 6:28 
AnswerRe: ASp.NEt how to delete a row from a grid Pin
Mark Salsbery14-Aug-08 6:44
Mark Salsbery14-Aug-08 6:44 
GeneralRe: ASp.NEt how to delete a row from a grid Pin
Jijo.Raj14-Aug-08 20:28
Jijo.Raj14-Aug-08 20:28 
QuestionHow to reuse a dialog resource in another project Pin
Electronic7514-Aug-08 2:36
Electronic7514-Aug-08 2:36 
AnswerRe: How to reuse a dialog resource in another project Pin
SandipG 14-Aug-08 2:43
SandipG 14-Aug-08 2:43 
GeneralRe: How to reuse a dialog resource in another project Pin
ThatsAlok19-Aug-08 20:41
ThatsAlok19-Aug-08 20:41 
GeneralRe: How to reuse a dialog resource in another project Pin
SandipG 19-Aug-08 20:54
SandipG 19-Aug-08 20:54 
Questionchanging windows language in the code Pin
iayd14-Aug-08 1:46
iayd14-Aug-08 1:46 
AnswerRe: changing windows language in the code Pin
_AnsHUMAN_ 14-Aug-08 1:52
_AnsHUMAN_ 14-Aug-08 1:52 

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.