PocketMatrix forums

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

problems on real device

Hi all,
I'm developed a game for Pocket PC using GapiDraw, when I test it on the PC or Pocket PC emulators (2000, 2002 and 2003) it runs flawlessly, but when I tested it on a friend's HP h1940 Pocket PC some strange bugs appear.

Can anyone tell me what would be the possible causes of such errors ?
Could it be the cause of the few floating point calculations used in the game ?

Thanks
- What are the bugs?
- Where in the code do they occur (ie; post some code so we can take a look).

For now I'd suggest loading up the device in the cradle and running the program in debug mode. This will allow you to step through the code and see exactly what's going on.
Unfortunatly, I don't own a Pocket PC so I can't use the debug mode.

The game is like a breakout game, and the bugs is that the ball doesn't move in the correct direction.

Could you just tell if there are any known problems that cause such problems, I'm suspecting that it might be because the internal coordinates of the ball are float.
I use floats in my games for movement and it's never been an issue, but then again I don't develop games on the emulator.

Could try:

- Build a PC version and test it on the PC.
- Since it moves in the wrong direction, you should be able to tell which calculation changes need to be made to make it move in the right direction on the Pocket PC. It will ruin the emulator version, but at least it'll work on the Pocket PC.
- Invite your friend over and debug on his Pocket PC.
you could also print some output to a file, and ask your friend (or anybody in the forum) to execute it and send you the log file back.

if done accurately you'll probably be able to find the bug in a few steps.