Mail Archives: djgpp/2000/02/15/01:22:16
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 -