Mail Archives: djgpp/1998/02/06/21:02:32
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 -