Re: [Dev-C++] Deliberate crashes - more information
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Brian P. <br...@su...> - 2002-04-08 22:45:52
|
Dear all: For those newbies out there, the moral of this story is NEVER,ever, EVER delete a pointer without afterwards assigning it NULL (0). I have received numerous emails from beginners and experts alike who have not done this and have experienced some of the following horrific events: (The names have been withheld to protect the guilty) A New York man claimed that his under-ware spontaneously sprung up over his head nearly suffocating him. A woman claimed her cat (fluffy) gave a load meow and died on the spot. A 17 year-old from Vancouver,BC said a meteor crashed through his house and destroyed his computer and lobotomized his dog. A man, hard of hearing, claimed that he gained his hearing back...only to lose his sight. A CA professor found himself stranded on a desert Isle with six other (slightly neurotic) passengers. Finally (and this is the worse by far) a gentleman was forced to port an entire beginners C++ book to Ada simply for pointing out grammatical inconsistencies dealing with pointers in C++ books. There are many more, but they are worse then these and there may be children reading this list. So, don't call delete on an already deleted pointer unless you first assign it null. Period! b-- On Mon, 2002-04-08 at 14:45, Bob Wilson wrote: (Please see the rest of this thread for the gory details). |