Author Topic: Game crashing without 'Oops' message  (Read 9994 times)

0 Members and 1 Guest are viewing this topic.

Offline gumby

Game crashing without 'Oops' message
« 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.
« Last Edit: May 10, 2012, 08:24:08 PM by gumby »


In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline gumby

Re: Game crashing without 'Oops' message
« Reply #1 on: May 10, 2012, 08:33:15 PM »
Yep, that was it.  An empty string attempting to be converted to a number.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.047 seconds with 21 queries.