PocketMatrix forums

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

Fisrt steps in debugging a HAL/PF game using all latest patc

On my Axim X51v WM5 device (having built with the imaging factory fixes) the game starts, Hekkus begins to play, the first screen appears and then the game falls over. On the X5 I don't even see or hear anything, it just fails.

Interestingly I don't see and of my 3D which comes to PF from PocketGL so I will follow that angle up myself.

Does anyone have any insights into obvious reasons why I get crashes bearing in mind the regular PF .7 version without HAL runs fine on the X5 and other older devices.
In what way(s) does it fail? Do you get a callstack at all? What happens? Screen is black? Pink?
Once, when I had a similar problem, in gameinit - I put multiple getDisplay,clear to a specific color, and update.

For instance, at top of gameinit, clear to red. then to yellow after a few things get loaded, etc...

That way, I could see how far the code was getting before it quit.
The game just exits. No info onscreen. I'm going to assume that it's at the point of PocketGL starting to draw stuff that it goes haywire. I will test tomorrow if I get time.

I did get the game working with HAL some months ago just for fun so who knows what's happening.

I'm not going to spend too long as I just wanted my game to work on my new X51v but it's not really important. I'm working my way into doing the next game really.
Just use the debugger and trace the code?
I don't have a functioning debugger as my eVC 3 tools don't like activesync 4
Shouldn't you be using EVC4 or VS2005 with the Axim x51?
well I have all the stuff downloaded and got the VS2005 DVDs from M$ but no time to install at present. Will do soon.

ok. Ran the eVC4 install. It installed the new platform mgr, rebooted & now the install wort carry on. Restarting gives an error. I'm copying the install to my laptop to try.

update: My desktop was missing a file autoexec.nt so the install was failing. Restored this file & have now installed the eVC4 system + the SP4
Conan wrote:well I have all the stuff downloaded and got the VS2005 DVDs from M$ but no time to install at present. Will do soon.

ok. Ran the eVC4 install. It installed the new platform mgr, rebooted & now the install wort carry on. Restarting gives an error. I'm copying the install to my laptop to try.

update: My desktop was missing a file autoexec.nt so the install was failing. Restored this file & have now installed the eVC4 system + the SP4


Are you using WinXP SP2? VS2005 requires SP2. If you are using SP2 then I'm surprised eVC4 installed so easily for you.
yes, XP sp2 however it was not easy. It took me about 2hrs 30 mins inc the service pack and an sdk. It's building and running on my X51v so I'm happy for now but none of the PF/HAL stuff is working just yet.

update: I built a couple of the v.8 samples with the 2003 2nd edition sdk, downloaded & they hang the Axim. The ordinary Windows samples build & run ok. obviously something I'm doing wrong???
Did you rebuild all including the pf library? (and make sure the lib is where you expect it do be)
I had not done a rebuild all. I did this now on PF and one of the samples also checked the include and lib files location but my X51v still freezes so I will check everything methodically later this morning.
I'm having a similar issue. I have PF 8.1 (without the patches). When I build the blit demo, it runs fine on a X30 but when I try it on a X51v it locks up the X51. I recompile all on everything and it's still a no go. I'm also using EVC3.0, but this shouldn't be a problem. If you figure anything out Conan, please let us know. Likewise if I figure anything out I'll post here. Anyone else had any experience with the X51 yet?
Got it all working. It's just a case of doing a rebuild all on PF and the apps. So far only the release version seems to run on WM5. I also deleted all previous PF arm libs just to be sure I was linking the correct one.
Well this is interesting. I still can't get the blit sample to work, but if I try to plasma or the rotate, they work fine. Likewise, my project is locking the X51. So there is something in the blit and my project that is locking up the X51. I don't quite understand it. I'll debug some more.
Traced it down to the JPG for m_background. Once I removed anything that had to do with the m_background, it runs fine on the X51. Any insights?
is your debugger working? Mine isn't

(I did not try Blit.)
I haven't tried the debugger. I did it the old fashion way of commenting code out that I suspected until I got it to run :D. My project uses JPGs as well, so I'm suspecting the JPGs are locking up the X51. I haven't looked into it any further. It's easy enough me to move to BMPs or maybe I'll play with the TGA stuff I've seen surface on here. I also need to include the patches that I've seen on here. I'm assuming they are inclusive so if I get the 6th patch it will have everything in it, right?
I'm using the 'latest' patch with the image factory stuff in it. I'd be surprised if there was a jpg issue but that's what I use in the main. A few experiments are in order to nail down what's happening. I get a few hours on Sunday but not before.