From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Null-Pointer and Assembly Date: Thu, 14 May 1998 19:02:31 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 21 Message-ID: <355B7807.5B6C@cs.com> References: <19980512032838 DOT AAH16211 AT ppp127 DOT cartsys DOT com> <35675898 DOT 6784157 AT news DOT Austria DOT EU DOT net> NNTP-Posting-Host: ppp145.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Gerhard Gruber wrote: > > That's not exactly true. If you use the MFC (recommended by MS) then you get > hundreds of codelines calling assert() to ensure that there is no null > pointer. > > I can't believe it! I just wrote a mail that defends MS. Must getting sick or > the heat affects my brain. :) I guess that post must have been tongue-in-cheek. After all, *0 is a NULL-pointer dereference and all the asserts in the world won't catch it. :-) However, cwsdpmi bombs on it while Windows just keeps on truckin'... -- --------------------------------------------------------------------- | John M. Aldrich | "Democracy is based on the assumption| | aka Fighteer I | that a million men are wiser than one| | mailto:fighteer AT cs DOT com | man. How's that again? I missed | | http://www.cs.com/fighteer | something." - Lazarus Long | ---------------------------------------------------------------------