Community

SCI Programming => SCI Syntax Help => Topic started by: gumby on May 10, 2012, 07:35:18 PM

Title: Game crashing without 'Oops' message
Post by: gumby on May 10, 2012, 07:35:18 PM
I'm trying to debug a issue where a call to a procedure is causing my game to abruptly crash, window just closes.  If I introduce a Print() statement immediately before the line that is causing the crash, the crash doesn't happen.

The procedure executes just fine under other circumstances.  If I execute the procedure call with the same inputs in a more 'controlled' environment (in a room script with only that call in it), it works just fine.

Anyone seen this behavior before?  Anyone have any ideas how to track this problem down?

EDIT:  I've attached screenshots with the debugger.  These are the last 2 calls before the crash.  I'm pulling something out of a text resource.  The next command is attempting to convert it to a number.  I'm looking into both calls now.

I think the problem is that I'm retrieving an empty text resource, which is crashing the next call that attempts to convert it to a number.
Title: Re: Game crashing without 'Oops' message
Post by: gumby on May 10, 2012, 08:33:15 PM
Yep, that was it.  An empty string attempting to be converted to a number.