PocketMatrix forums

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

Power Down/Power Up - causes exception

I've got a very frustrating problem right now. If I start my app, power down my pocket PC and then power it up again, I get an illegal exception (the famous 0xc0000005 exception).

(*side note* - I tried the "Infestation" game which was written with Pocket Frog. It does the very same thing if I start the game and then cycle the power - illegal exception 0xc000005.)

I'm also using the Hekkus sound library and currently have the hekkus suspend and resume calls in my Game::Resume and Game::Suspend sections. Is there anything else that I need in my resume/suspend sections?

What actually happens in Pocket frog when you cycle the power switch on the pocket pc?

Thanks...
:D
Hi Robert, have you tryied the latest pocket frog? I used PF 0.6 to code infestation but maybe the latest version have this fixed ( I think it´s 0.7, fzammeti did some improvements to 0.6 ).
I think this is similar to the losing/gaining focus problem.
I'm using PF 0.7 & Hekkus Release 0.99.rc4b.
Powering off & on does not crash my game. I'm yet to test the battery low & appointment pop ups.
I'm currently using PF 0.7 for my game. I'm also using the latest version of Hekkus. What do you guys have in your 'Resume' and 'Suspend' sections? I'm wondering if I need something special to account for these.
Currently all I have is the Hekkus suspend & resume. I also tried disconnecting from activesync & trying to start a voice recording neither of which caused a problem??

(don't worry, I may not have this problem but I've plenty of others :)
PF 0.7.0 handles lost of focus properly.

Make sure you don't try to render anything using the display when your app doesn't have focus.

This is something that multiple people have hit in the past... If your code isn't too big, you might consider posting it here (as an attachment) so that others can take a look at it.
I'm confused. If PF 0.7.0 handles loss of focus properly, why do I need to concern myself with this issue?

Do I need to check that I don't render anything to the display when my app doesn't have focus, or does PF do this automatically for me?