Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
You've made me think more carefully about this again: the compiler could comply with the standard by generating code for the NULL check at the site of the delete call and not in the function itself. In fact this seems like a good strategy. MSVC6 at least doesn’t (delete without an if check):
004010F7 50                   push        eax
004010F8 E8 AB 20 00 00       call        operator delete (004031a8)
004010FD 83 C4 08             add         esp,8


Clearly you were correct when you suggest that the OP should stop guessing and measure.

Steve

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 
GeneralRe: changing windows language in the code Pin
iayd14-Aug-08 1:58
iayd14-Aug-08 1:58 
GeneralRe: changing windows language in the code [modified] Pin
_AnsHUMAN_ 14-Aug-08 2:06
_AnsHUMAN_ 14-Aug-08 2:06 
AnswerRe: changing windows language in the code Pin
SandipG 14-Aug-08 2:14
SandipG 14-Aug-08 2:14 

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.