www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/06/21:02:32

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro and CWSPMI
Date: Fri, 06 Feb 1998 20:59:48 -0500
Organization: Two pounds of chaos and a pinch of salt.
Lines: 23
Message-ID: <34DBC014.19EB@cs.com>
References: <34db245e DOT 0 AT news7 DOT kcdata DOT com>
NNTP-Posting-Host: ppp244.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jeremy Lounds wrote:
> 
> Hi, All! I am currently making a game in DJGPP/Allegro/VPE, and when I try
> to run it under DOS mode (with CWSDMPI loaded) it crashes. It runs great
> under Win95!

This is 95 percent likely to be because Windows 95 does not implement
certain memory protection features that are found in DPMI 1.0, whereas
cwsdpmi does.  The most common cause is a NULL pointer dereference in
your program.  cwsdpmi catches this error, and causes a page fault with
error code 006.  If this is what you get, then your program is
dereferencing a garbage pointer somewhere.

The fact that cwsdpmi catches it is a good thing.  Imagine what would
happen if your game were distributed with such a bug.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "If 'everybody knows' such-and-such, |
|       aka Fighteer I       | then it ain't so, by at least ten    |
|   mailto:fighteer AT cs DOT com   | thousand to one."                    |
| http://www.cs.com/fighteer |                 - Lazarus Long       |
---------------------------------------------------------------------

- Raw text -


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