Click here to Skip to main content
15,921,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: delete operator Pin
Paresh Chitte3-Aug-07 0:56
Paresh Chitte3-Aug-07 0:56 
GeneralRe: delete operator Pin
Taruni3-Aug-07 1:09
Taruni3-Aug-07 1:09 
GeneralRe: delete operator Pin
CPallini3-Aug-07 2:37
mveCPallini3-Aug-07 2:37 
GeneralRe: delete operator Pin
Cedric Moonen3-Aug-07 1:01
Cedric Moonen3-Aug-07 1:01 
GeneralRe: delete operator Pin
Taruni3-Aug-07 1:11
Taruni3-Aug-07 1:11 
GeneralRe: delete operator Pin
Paresh Chitte3-Aug-07 1:13
Paresh Chitte3-Aug-07 1:13 
GeneralRe: delete operator Pin
Nemanja Trifunovic3-Aug-07 2:06
Nemanja Trifunovic3-Aug-07 2:06 
GeneralRe: delete operator Pin
CPallini3-Aug-07 2:43
mveCPallini3-Aug-07 2:43 
Nemanja Trifunovic wrote:
That's not necessary. Deleting NULL is guaranteed to be a no-op.


The test maybe useful to mark again with NULL the deleted pointer:
if (strData)
{
  delete [] strData;
  strData = NULL;
}

Smile | :)





If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: delete operator Pin
CPallini3-Aug-07 2:41
mveCPallini3-Aug-07 2:41 
GeneralRe: delete operator Pin
Cedric Moonen3-Aug-07 1:14
Cedric Moonen3-Aug-07 1:14 
GeneralRe: delete operator Pin
Nemanja Trifunovic3-Aug-07 2:36
Nemanja Trifunovic3-Aug-07 2:36 
GeneralI agree Pin
CPallini3-Aug-07 2:52
mveCPallini3-Aug-07 2:52 
GeneralRe: I agree Pin
Nemanja Trifunovic3-Aug-07 3:19
Nemanja Trifunovic3-Aug-07 3:19 
GeneralRe: I agree Pin
CPallini3-Aug-07 3:37
mveCPallini3-Aug-07 3:37 
GeneralRe: I agree Pin
Nemanja Trifunovic3-Aug-07 3:54
Nemanja Trifunovic3-Aug-07 3:54 
GeneralRe: I agree Pin
CPallini3-Aug-07 4:09
mveCPallini3-Aug-07 4:09 
QuestionPorting Application from VC++ 6.0 to VC2005 Pin
yudhisthira3-Aug-07 0:10
yudhisthira3-Aug-07 0:10 
AnswerRe: Porting Application from VC++ 6.0 to VC2005 Pin
prasad_som3-Aug-07 0:15
prasad_som3-Aug-07 0:15 
GeneralRe: Porting Application from VC++ 6.0 to VC2005 Pin
Paresh Chitte3-Aug-07 0:25
Paresh Chitte3-Aug-07 0:25 
GeneralRe: Porting Application from VC++ 6.0 to VC2005 Pin
yudhisthira3-Aug-07 0:27
yudhisthira3-Aug-07 0:27 
GeneralRe: Porting Application from VC++ 6.0 to VC2005 Pin
prasad_som3-Aug-07 1:18
prasad_som3-Aug-07 1:18 
AnswerRe: Porting Application from VC++ 6.0 to VC2005 Pin
krmed3-Aug-07 0:48
krmed3-Aug-07 0:48 
AnswerRe: Porting Application from VC++ 6.0 to VC2005 Pin
#realJSOP3-Aug-07 0:54
professional#realJSOP3-Aug-07 0:54 
GeneralRe: Porting Application from VC++ 6.0 to VC2005 Pin
Rob Grainger3-Aug-07 2:36
Rob Grainger3-Aug-07 2:36 
AnswerRe: Porting Application from VC++ 6.0 to VC2005 Pin
Rob Grainger3-Aug-07 2:34
Rob Grainger3-Aug-07 2:34 

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.