Afficher un message
Vieux 31/01/2008, 08h51   #19
Joachim Schmitz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: assigning pointer to NULL

user923005 wrote:
> On Jan 30, 1:01 am, r...@hoekstra-uitgeverij.nl (Richard Bos) wrote:

<snip>
> P.S.
> I almost always set freed pointers to null myself (the exception being
> in C++ because it is pointless to set a deleted class member pointer
> to null in a destructor.)
> It s with a very small class of problems (but does have one bad
> side effect -- double frees are less likely to be detected)

But they won't harm (i.e. possibly crash the program) anymore either.

Bye, Jojo


  Réponse avec citation
 
Page generated in 0,05058 seconds with 9 queries