iTGB 1.2: DSO files not being deleted?
by Brian Tan · in iTorque 2D · 05/14/2009 (3:55 pm) · 4 replies
I'm wondering if anyone else has seen this issue where you can't run the game from TGB the "second" time.
Basically I have narrowed it down to deleting the .dso files from /game/gameScripts and game/data/levels to get my game to run.
I also found the line that was causing it to crash the game if I never deleted the .dso files. It's when I make a new instance of my new class I added to the engine AND assign the scenegraph.
What's strange is that I never had this issue before when I was using v1.1.
Basically I have narrowed it down to deleting the .dso files from /game/gameScripts and game/data/levels to get my game to run.
I also found the line that was causing it to crash the game if I never deleted the .dso files. It's when I make a new instance of my new class I added to the engine AND assign the scenegraph.
$TEST = new myNewClass()
{
scenegraph = %scenegraph;
};If I don't assign the scenegraph, it won't crashWhat's strange is that I never had this issue before when I was using v1.1.
#2
05/15/2009 (12:29 pm)
I actually started getting random crashes in windows as well. Mac and iPhone versions are running like a charm however.
#3
It's not seen on Mac and iPhone most probably because they automatically null variables that the PC doesn't do.
It is strange that deleting the .dso files worked sometimes...
05/18/2009 (1:00 pm)
I figured it out. The new class I added (to the engine) wasn't initialized properly and there was a null pointer involved. Needless to say, once I made sure it was nulled in the constructor, the problem went away.It's not seen on Mac and iPhone most probably because they automatically null variables that the PC doesn't do.
It is strange that deleting the .dso files worked sometimes...
#4
05/18/2009 (1:38 pm)
Un-initialized variables are like that, they will sometimes be 0, NULL etc depending on what was in that memory location. Simple things can cause the absolute location of those variables to change giving unpredictable results.
Torque Owner Brian Tan