Date: Mon, 5 Oct 1998 15:13:41 +0100 (BST) From: George Foot To: Tal Lavi cc: djgpp AT delorie DOT com Subject: Re: cwsdpmi problem In-Reply-To: <36131AC7.53E8@post.tau.ac.il> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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