delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/24/13:24:01

From: "Rainer (RAUBER) De Temple" <rdt AT cnl DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Allegro general protection fault
Date: Sat, 21 Jun 1997 17:41:59 +1000
Organization: Droids R Us
Lines: 48
Message-ID: <33AB85C6.96926B68@cnl.com.au>
NNTP-Posting-Host: shep-54.cnl.com.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

hi,

I've been working on my game with allegro for about 1 1/2 months now,
and was happily working away a few days ago, when everything went
terrible.

I was implementing shooting in the game, and it worked fine. Then, I
decided to put in a bit where it makes you start in a random location
each time you play, by first restarting the random number generator and
just making two variables random numbers.  It looked fine.

I compiled the program, it worked, but then when I ran it I got the
following mesage:

Shutting down Allegro
Exiting due to signal SIGSEGV
General Protection Fault at eip=0000c8dc
eax=79636573 ebx=00000002 ecx=00000000 edx=00211200 esi=00000054
edi=00043050
ebp=00083024 esp=00082f94 program=D:\ALLEGRO\RAINER\RAINER.EXE
cs: sel=00a7  base=82ef2000  limit=0030ffff
ds: sel=00af  base=82ef2000  limit=0030ffff
es: sel=00af  base=82ef2000  limit=0030ffff
fs: sel=00af  base=82ef2000  limit=0030ffff
gs: sel=00bf  base=00000000  limit=ffffffff
ss: sel=00af  base=82ef2000  limit=0030ffff

Call frame traceback EIPs:
  0x0000c8dc
  0x0002623a

What the hell is this?  I thought, so then, I took out the resetting the
random number generator.  but that didn't work.  Then I took out
shooting.  that didn't work.  I've taken out just about everything I had
added in the last few days and still nothing.  I can't find the problem
and I'm sure it's something really simple.

Also, it only crashes when I press a key, otherwise it works but you
can't do anything.  And sometimes it says page fault instead of
protection fault.

PLEASE HELP!


P.S. please email me, as I can never find responces on the newsgroup.

Rainer De Temple (rdt AT cnl DOT com DOT au)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019