Game Development Community

Nasty Crash with new keyboard bindings

by Tony Oakden · in Torque Game Engine · 12/13/2004 (3:30 pm) · 3 replies

This is a long shot but here goes...

I've added a couple of new key bindings to the engine (to control a jetpack coincedentally) and modded the neccessary routines in native. The changes I made seem harmless enough and everything works perfectly most of the time then suddenly the computer completely freezes with no warning message and I have to reboot. The log doesn't show any useful information and the crash seems completely random. I know this is a long shot but has anyone any experience of this happening which I might be able to make use of for tracking this one down? Otherwise I think I may have to revert to an earlier stable build and start incrementally changing stuff till the problem remanifests.

I suspect input is getting clobbered completely but it's very difficult to track down the problem.

Any help would be most welcome!

regards,

Tony Oakden

#1
12/13/2004 (3:49 pm)
It's a long shot but I would assume that the is a function calling some sort of timeout valu or some other thing to do with waiting a certain period of time.Try timing the amount of time bettween crashes from when you fire the jetpack.

I would also run the game in windowed mode to make the crashes less severe.

Max
#2
12/14/2004 (4:03 pm)
Thanks for the response Max,

Unfortunately I am already running in Windowed mode and the whole machine just lock up. I am going to try rolling back to an earlier version of the code and then gradually adding stuff back in until the problem re-appears. Unfortunatley I can't reliably repro the bug so I'll need to test for some time to be sure I've got rid of it. Oh well now I remember why I stopped coding :)
#3
12/28/2004 (2:41 pm)
For those interested it turns out the problem was not with my code at all but windows XP. Something to do with threads finishing prematurely ?? I reformated my machine and now all is well. Bloody annoying though :(