Illegal exception when saving room

Started by homelightgames, Wed 08/11/2006 00:44:19

Previous topic - Next topic

homelightgames

Hey All,

I received this fatal error when trying to save the room I was working it.  I had just closed a script (which simply held a conversation and a variable change (setgraphicvariable...).  As far as I know there wasn't any syntax error with my script, although it happened rather quickly.

Quote
Illegal exception
--
An exception 0xC0000005 occured in AGSEDIT.EXE at EIP = 0x00497068; ACI version 2.72.652 while saving the room.

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the the time and notify CJ on the Tech forum.

Does anyone know why that happened?

thanks,

visionmind

(Edit by strazer: Please post error messages in clear text so they show up in the forum search!)

Pumaman

That's strange -- if you load the room back in and save it again, do you get the crash again?

It's possible that some sort of innocent mistake in the script has the potential to crash the compiler, and if this is the case I'd be interested in finding out what it is.

homelightgames

Hey,

Sorry for not labelling the subject properly.

I had been working in AGS for a while at the time, so when it crashed I lost all the changes with characters and inventory, BUT since room saves occur when you leave the room I only lost the work in that current room.
So... I redid all the work (as best as I could remember) including the script in that particular room, and had no problems saving it.  Things worked fine.

It was just that one freak occurance when it crashed trying to save the room.  My best guess is what you suggested that I made a simple mistake that just didn't work right with the compiler.  I say simple because I wasn't scripting anything advanced in the room.  I had a bunch of .Say's (a conversation), an IF statement with a GetGraphicalVariable, some //comments and a setgraphicalvariable, that's all I can remember. 

I know occasionally I miss an ; or a ", but it never has crashed before.  Either way it's wierd. 

While at the time it was frustrating (as anyone could imagine), I have since coded beyond that point without any other problems.


SSH

I've know AGS to crash after it has been open a long time, so it can sometimes just be worth quitting and reloading to avoid these kind of problems. Its very hard to track down such bugs, though.
12

SMF spam blocked by CleanTalk