PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Probably killed a bug in PF 0_8_1

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

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:
I'm interested in seeing your game when it's ready as I too am writing an isometric game using PF.

ps: would you like me to re-write your website homepage text so that it makes more sense? It's not quite normal looking.
Thanks Conan, and yes I would like to re-write my story, but I haven't got english speaking friends :(
It would be a real problem for me when I'll complit my russian scenario.
Our company develops games exclusively for PocketPC. By utilising all the features of a PocketPC (such as the touch screen) we aim to make our PocketPC games as interesting and exciting as quality PC games. We believe that games for your Pocket PC could and should be not only interesting and exciting but also enthralling and even wild.

Our first project in development is a game called !PYROMANIA! - 3D action with elements of RPG. We hope it will prove worthy of our stated aims and be equal to your expectations.

I reworded the home screen text and fixed obvious errors like exiting being used instead of exciting
Really thank you, I've made really obvious error :oops:
And what do you think about a bug, is it a bug?
I didn't thing this was a bug, although I have run into something similar... I was doing 1 GetDisplay() with multiple Update()'s. Older versions were ok with that, 0.8 didn't like it.

I think the way it's supposed to be used is:

GetDisplay()
DrawSomeStuff..
Update()

for every loop.
I didn't thing this was a bug, although I have run into something similar... I was doing 1 GetDisplay() with multiple Update()'s. Older versions were ok with that, 0.8 didn't like it.

Yes I've read about it in announcement of PF 0_8 topic, but in my example I use only one Update() :)

OK I've sent zipped example to Thierry, waiting for reply.