0xDEADBEEF?

Hi Neil,

Say… don’t I know you from somewhere else? :wink:

NB> You mean disadvantages, and this is an even worse condition since
NB> 0xb00b135 is in the first 185MB of addressable space. You’re more likely
NB> to run in to it being a valid pointer than 0xdeadbeef, whereas 0x0 will
NB> always throw an exception. :wink:

So long as you initialise your pointers! I always use NULL personally,
but it’s horrible to hunt down bugs that could be anywhere in a huge
project that originate from uninitialised pointers. I spent over a
month doing just that in a commercial game because upgrading to VC7
showed those bugs! They’d actually built the game around those bugs
because of the behaviour they had…–
Best regards,
Neil mailto:n.griffiths at virgin.net