delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/05/10:13:58

Date: Mon, 5 Oct 1998 15:13:41 +0100 (BST)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: Tal Lavi <ranla AT post DOT tau DOT ac DOT il>
cc: djgpp AT delorie DOT com
Subject: Re: cwsdpmi problem
In-Reply-To: <36131AC7.53E8@post.tau.ac.il>
Message-ID: <Pine.OSF.4.05.9810051510060.18005-100000@sable.ox.ac.uk>
MIME-Version: 1.0

On Wed, 30 Sep 1998, Tal Lavi wrote:

> Olivier Perron wrote:

> > you certainly dereference a null pointer.
> > Look at your code where you could use a null pointer.
> > 
> > Olivier.
> 
> are you sure?
> why does it work fine with the win95 dpmi server?

If possible, DJGPP programs ask the DPMI server to crash them if
they try to dereference NULL pointers.  Windows 95's DPMI server
doesn't support this feature, so it doesn't work there.

The crash is a very useful message to you -- your code is
broken, and you need to fix it.  9 times out of 10 it's not a
problem with CWSDPMI at all, although a lot of people seem to
get this impression.  Don't be tempted to brush it under the
carpet by only running your program from Windows.  When
developing programs, always test them under DOS as well as
Windows -- if possible, do the development under DOS in any
case.  I've caught many of my own bugs by doing this.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

xu do tavla fo la lojban  --  http://xiron.pc.helsinki.fi/lojban/lojban.html

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019