Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Running PocketHAL in Symbian: a few findings


Running PocketHAL in Symbian: a few findings

Postby jdiogo » May 5, 2006 @ 7:13pm

I've found a few things with using PocketHAL for Symbian that I'd like to share:

1) When running the PocketHAL included examples in the debug Symbian emulator, a memory leak warning will be displayed on exit. This happens because the STDLIB is used, which allocates memory buffers for itself, which must be freed on exit. To make the warning go away, simply add the following to the end of GameBase::~GameBase() :
CloseSTDLIB();

2) On Nokia N70 devices, when loosing focus and then returning to the application the screen will be messed up, displaying at a quarter size of the screen and with a lot of greenish garbage pixels. Appears to be a PocketHAL issue with these devices - a workaround is destroying the Display object when loosing focus (OnSuspend) and creating it again on gaining focus (OnResume), which will work fine.

3) Always do Display->Swap if you call Display->BeginScene. For some scenarios it might make sense to quit halfway before calling Display->Swap, for example if you discovered that nothing changed and no swap is needed. Failing to do so will work fine on older Symbian 6.1 and 7.0 devices but will introduce undesirable effects on Symbian 8.0 devices (for example Nokia 6680) like machine reboots when exiting the game.

Regards,

Jorge Diogo
jdiogo
 


Postby jaguard » May 5, 2006 @ 9:00pm

Great info, although useless for me so far.
I wish there was a PocketFrog for symbian, not just PocketHal. I just can't see a way how I easily port a game into symbian..
jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron