Xref: news2.mv.net comp.os.msdos.djgpp:7957 From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Program crash Date: Sun, 25 Aug 1996 11:59:36 CDT Organization: Houston Supernet& Tulsa Supernet Lines: 8 Message-ID: <32208678.sandmann@clio.rice.edu> References: <4vihag$4ol AT magus DOT cs DOT utah DOT edu> Reply-To: sandmann AT clio DOT rice DOT edu NNTP-Posting-Host: dmccbk.dmccorp.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > I have a program which gives me a GPF only sometimes when I exit. > General Protection Fault in RMCB at eip=fef; flags=3002 > ebp=00000000 esp=00003450 cs=2b ds=3b es=33 fs=33 gs=0 ss=33 error=00a4 Register listing from CWSDPMI, the error code indicates the af selector isn't valid anymore in a RMCB. This means you didn't unhook one of your hardware interrupts (probably timer) properly and a callback came in from real mode while the image was exiting.