From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: Error GPF on quit? Date: Sun, 29 Aug 1999 21:47:41 -0500 Organization: Rose-Hulman Institute of Technology Lines: 36 Message-ID: <7qcrem$6vd$1@solomon.cs.rose-hulman.edu> References: <7pvk33$ut4$1 AT nnrp1 DOT deja DOT com> <7q04p6$9qu$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu X-Trace: solomon.cs.rose-hulman.edu 935981334 7149 137.112.205.227 (30 Aug 1999 02:48:54 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 30 Aug 1999 02:48:54 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Johan Venter wrote in message news:OQPw3.5573$ei1 DOT 10963 AT newsfeeds DOT bigpond DOT com... > Sid wrote in message > news:7q04p6$9qu$1 AT nnrp1 DOT deja DOT com... > > > Sid, I've replied to your other mail you sent me about this problem. Please > follow all my hints (about the -g switch and symify), as they'll probably > safe your life on a few occasions. > > I still say that GPF is produced from your array indices being out of > bounds. Remember, don't test in windows as you won't see any error from that > code at all (i tested the exe you sent me). The Windows DPMI server has a > habit of letting pointer dereferences pass. I don't know about Windows 95 (I've only owned Win 3.1, Win 98, and Macs), but you can tell Windows 98's DPMI to be tougher about pointer dereferences by telling it to protect memory. This will slow your program slightly, but that's normal for debugging. 1. Right click your EXE. Choose Properties. 2. In the Memory panel, in the Conventional memory group, place a checkmark next to Protected. > Johan Venter > ICQ 3643877 > surf.to/djgppig come.to/yerrick Download DOSArena, the best DJGPP game this side of ----- Message Truncated -----