www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/15/01:22:16

Date: Tue, 15 Feb 2000 10:25:13 +0500 (MVT)
From: Prashant TR <prashant_tr AT yahoo DOT com>
X-Sender: prashant_tr AT midpec DOT com
To: djgpp AT delorie DOT com
Subject: Re: crashes outside windows
In-Reply-To: <1fe4dcd0.2728a390@usw-ex0106-047.remarq.com>
Message-ID: <Pine.LNX.4.10.10002151020340.861-100000@midpec.com>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 14 Feb 2000, hellbaron wrote:

> I used djgpp to compile several graphix related programs that
> i've developed over the last 2 months. It worked just as
> expected and had no compiling or linking error what so ever. I
> was pretty glad with the outcome... until... Then I tried to run
> this programs, but outside Windows, I dont mean in a dos box,
> but in DOS 6.22. Surprisingly I got a GPF fault and I cant get
> it to work. The programs do not use any libraries or header
> files at all, except for two of my own which contain home made
> mouse and graphix routines. I have no problems when running this
> programs in the win98SE dosbox, but i just cant get them to work
> in pure DOS. Please help me.. any feedback would be greatly
> apreciated.. thanx in advance.

The DPMI in Windows doesn't catch NULL pointer references since it doesn't
support DPMI 1.0 extensions. However, CWSDPMI catches these. This is most
likely the reson. If you want to check this, just add the line

int _crt0_startup_flags = _CRT0_FLAG_NULLOK;

outside the main function. This should tell you whether the crash is due
to a NULL pointer.

- Raw text -


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