Date: Tue, 28 Sep 1999 09:49:08 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: hank_heng AT hotmail DOT com cc: djgpp AT delorie DOT com Subject: Re: DPMI Crash Program In-Reply-To: <7spe65$du7$1@nnrp1.deja.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.