Is it a bug?
I’m still developing my Isometrical game !PYROMANIA! (www.wildgames.net).
I decided to switch to the PocketFrog 0_8_1
And got a nice bug – everything compiles ok, but when my game starts on a PPC it crashes after first or second blit.
Thanks to Conan mentioned problems with gersen’s font class I tried to compile my small project including this class and it crashed in the same way, and maybe I found a bug in Display class:
This works OK with an old and new versions of PF (0_7_0 & 0_8_1):
I mean, change a DisplayDevice to Display
This works OK with an old version and makes a CRASH in a new:
Now my game works and even I haven't fixed buttons yet, I'm so happy, I killed a bug!!!
Now I can use PocketHal version of PF, uffff.
Just try to use it, maybe it crashes only on my ASUS 620BT + eVC3?
What I cannot understand - in my game this bug sometimes crashed my device after 5 successfull loops, sometimes after 4, 3, 2, 1!!! It was a really hard to kill bug!
Because I use a lot of STL and thought it is some kind of a memory leak.
And second tip: my games now with PHal have less fps!?
I’m still developing my Isometrical game !PYROMANIA! (www.wildgames.net).
I decided to switch to the PocketFrog 0_8_1
And got a nice bug – everything compiles ok, but when my game starts on a PPC it crashes after first or second blit.
Thanks to Conan mentioned problems with gersen’s font class I tried to compile my small project including this class and it crashed in the same way, and maybe I found a bug in Display class:
This works OK with an old and new versions of PF (0_7_0 & 0_8_1):
I mean, change a DisplayDevice to Display
- Code:
class Gtext : public Game(){…..};
bool Gtext::GameInit(){….}
void Gtext ::GameLoop ()
{
Display * pDisplay;
pDisplay = GetDisplay();
pDisplay->Clear( somecolor);
pDisplay->Update();
}
This works OK with an old version and makes a CRASH in a new:
- Code:
class Gtext : public Game()
{
Display * pDisplay;
};
bool Gtext::GameInit()
{
/*here lives a bug->*/ pDisplay = GetDisplay();
}
void Gtext ::GameLoop()
{
pDisplay->Clear(somecolor);
pDisplay->Update();
}
Now my game works and even I haven't fixed buttons yet, I'm so happy, I killed a bug!!!
Now I can use PocketHal version of PF, uffff.
Just try to use it, maybe it crashes only on my ASUS 620BT + eVC3?
What I cannot understand - in my game this bug sometimes crashed my device after 5 successfull loops, sometimes after 4, 3, 2, 1!!! It was a really hard to kill bug!
Because I use a lot of STL and thought it is some kind of a memory leak.
And second tip: my games now with PHal have less fps!?
- Code: