Mail Archives: djgpp/1999/09/28/07:18:48
On Tue, 28 Sep 1999 hank_heng AT hotmail DOT com wrote:
> I compile my source with DJGPP, then when I try to run it under true
> DOS mode, even with the CWSDPMI installed, it will not run the program
> but saying something like :
>
> Exiting due to signal SIGSEGV
> Page fault ........
> (some more lines of numbers)
>
> But the problem doesn't exist when I run the program in Windows95's
> DOS box, so I think it might cause by the DPMI manager
No, it's most probably your bug. CWSDPMI is much more efficient in
finding NULL pointer dereferences than the Windows DPMI server is.
Section 9.1 of the DJGPP FAQ list (v2/faq211b.zip from the same place you
get DJGPP) explains more about these problems. Section 12.2 tells you
how to interpret those ``some more lines of numbers'' printed when the
program crashes, and how to use them to debug your program.
> Oh, one more thing, how do you link DPMI into my program in order it
> to run without need to shiping the DPMI manager every time I pass up my
> assignment ?
You need to include the DPMI server, or use the alternate PMODE/DJ server
(but then you lose virtual memory). See section 9.5 of the FAQ for more
details.
- Raw text -