Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ali on Sat 06/03/2010 16:08:20

Title: Illegal exception
Post by: Ali on Sat 06/03/2010 16:08:20
Hi CJ,

I got very close to solving this problem (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=40299.0), but now I've managed to cause a crash in my game which occurs every time I try to run it. I've tried commenting out recent changes, but it hasn't helped. 

The message is:

An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x0043FBE7 ; program pointer is +379, ACI version 3.12.1074, gtags (0,0)

Any suggestions? Thanks for your time,

Ali.
Title: Re: Illegal exception
Post by: Wyz on Sat 06/03/2010 16:14:53
Looks like a segmentation error, means that either your code or some native code causes memory to be accessed that is not allowed. You need to be alert for any code that tries to access something that is out of bounds (like screen coordinates that are way off screen). I can only guess, but I didn't see any obvious problems in your code :(
Title: Re: Illegal exception
Post by: Ali on Sat 06/03/2010 23:47:44
The crash keeps happening even when I remove the module I was working on from the game, so maybe it is the editor?
Title: Re: Illegal exception
Post by: Pumaman on Sun 07/03/2010 19:05:47
Could you upload a sample game that causes the crash so that I can investigate?
Title: Re: Illegal exception
Post by: Ali on Mon 08/03/2010 18:56:58
I'm afraid I may have screwed up the dodgy game file by trying to recover the game from a backup and renaming the .agf files to try out different ones. The offending file may be among the ones in this zip, and I've included the crash info:

http://www.filefront.com/15776837/Crash%20Games.zip

I've managed to restore from a backup without losing any work, so I'm happy now. I'm sorry I didn't preserve the questionable file, but it didn't occur to me at the time.
Title: Re: Illegal exception
Post by: Pumaman on Wed 10/03/2010 19:40:33
Ok thanks. If it happens again, please keep a copy of the broken game for me to take a look at.