PocketMatrix forums

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

2003 to WM5 upgraded PDAs only - Coredll exception

Hi all, I'm finding a problem running my PocketFrog 0.7.7 application - proven fine with 2002, 2003(SE)(VGA) and WM5(VGA) - on a device upgraded from 2003SE to WM5.

These devices are always either upgraded HP4700 series or Dell Axims.

An exception is thrown on the device, naming Coredll.dll as the source.

The WM5 version is compiled in VS2005, for ARMV4I, and works without problem on new WM5 devices.
Now, I know about 2003 devices having ARMV4 chips, and WM5 devices having ARMV4I chips, which are supposed to be backward compatible, so running an ARMV4 build on WM5 should work in theory.

Unfortunately I can't get the 2003 version to run on these devices, and I don't have an upgraded device to debug on.

Is anyone aware of something going on here that I've missed?
I expect to receive my first WM2005 device this week. Hopefully I will be able to reproduce this.
Thanks for taking a look - just wanted to clarify that this issue only seems to occur on 2003 devices which have had the OS ROM WM5 upgrade applied (from respective hardware manufacturers HP and Dell) - if you're getting a brand new WM5 device, I don't think you'll be able to reproduce the error, if you see what I mean?

It's worth noting that the application works without issue in all the VS2005 emulator images. Pity we can't emulate an upgraded device!

Thanks again
If that's the case, it might be hard for me to figure out what is the problem.
Having what appears to be the same problem in a customer's upgraded HP4705 - the application ran fine before ROM upgrade but now won't run anymore.

Jorge Diogo
Ludimate
Probably it's just what happens on me(latest pfrog+phal), but only on ipaq 4700 upgraded to WM5. My game works fine on most devices(including upgraded to WM5 ipaqs like 2110, 2410), but they say it just doesn't start on upgraded 4700.
It doesn't even create a log file, so probably gameInit() doesn't even called.
Well, it's good at least to know I'm not the only developer experiencing this (but unfortunately there are plenty of customers too :( ).

I'm wondering if it's going to be hard to find a developer who risked upgrading their HP4700 to WM5 who can debug this. If I had a 4700, I wouldn't touch the WM5 upgrade with a barge pole. I heard also that HP have apparently stopped sales of the 4700 since the upgrade - maybe they know about a fundamental problem they don't want to support.

Any 4700 upgraders out there who could take a look?
I do have an Axim x50v. I am just not sure I want to upgrade its firmware. It's the only WM2003 SE I have.

Does the problem occur on it?

If I upgrade it, is OpenGL|ES still available?
You can roll back the X50v to WM2003SE. Dell has the download on their website. I rolled mine back to 2003, since the WM5 release is so buggy. It works well for testing though, since it's my only 2003SE and WM5 device.
That's great, I will take a look.
Presto wrote:You can roll back the X50v to WM2003SE. Dell has the download on their website. I rolled mine back to 2003, since the WM5 release is so buggy. It works well for testing though, since it's my only 2003SE and WM5 device.


Presto, sounds like you've got some experience here.
Did you experience any problems with the X50v in WM5 mode, specifically with a PFrog/PHAL build or an unmanaged C++ app?

Or is this why you rolled back?

Thanks for your comments
ml wrote:Presto, sounds like you've got some experience here.
Did you experience any problems with the X50v in WM5 mode, specifically with a PFrog/PHAL build or an unmanaged C++ app?

Or is this why you rolled back?

Thanks for your comments
The only serious problem was the image loading stuff, which applied to all WM5 apps. (There are fixes elsewhere in the forum.)

For PF 0.7.0, I also had to comment out the two .reset() lines in the Shutdown() function in game.cpp, or the app would crash when the game exited. Oddly, this happened on PPC2002 devices too, but not WM2003 or WM2003SE.

So with those two fixes, I haven't had any problems building apps that work with PPC2002-WM5 devices. I compile everything in eVC3 targeting PPC2002.

Overall, I really like WM5, but the upgrade for the X50v just isn't right. The problems usually don't manifest for a couple of days, and then a soft reset takes care of it, but I don't like it when my PPC won't boot up if a storage card is left in it for a few days, or my icons don't look right. They also changed the BT functionality, so I couldn't browse through files from my phone.

But, it's good for testing WM5 projects with. :)

-John
OK, very interesting...

Narrowing down the possibilities:
The only serious problem was the image loading stuff, which applied to all WM5 apps. (There are fixes elsewhere in the forum.)

You're right, this is well known here in the forum.
Fortunately I don't use image loading directly anymore, I convert them to 565 and save/compress the raw data direct to file before they get anywhere near the PDA. Then decompress on the fly - it bypasses any dependency on the target - so the problem can't be related to images.
For PF 0.7.0, I also had to comment out the two .reset() lines in the Shutdown() function in game.cpp, or the app would crash when the game exited. Oddly, this happened on PPC2002 devices too, but not WM2003 or WM2003SE.

These are still in my PF and this works fine on all platforms but the upgraded WM5s (and this coredll problem is crashing the game before it loads on the upgraded platforms). This sounds like not ensuring Update is called on the display before the game quits. So it's not this...
I compile everything in eVC3 targeting PPC2002.

Now this is interesting.

I compile in EVC3 for PPC2002, and VS2005 for 2003/2003SE/WM5.

I've only tried getting customers to run a 2003 build (ARMV4 disguised in a WM5 format CAB install), but I haven't tried straight ARM - this sounds promising. I'll try it out and post the results back.

Thanks for now
It looks like there IS a problem with upgraded ipaq 4700. I compiled on the the demo samples and sent it to one of the owner, and the answer is still the same - it just doesn't start.

Thierry, is there anything you can do to solve this?
I have tested PocketHAL on a Torq TEN (WM5.0) and it works properly.

I wanted to download the upgrade for the Axim x50v, but apparently it isn't available. You had to order a CD that isn't available anymore (for $45).

UPDATE: I did some research and apparently Dell doesn't support the upgrade anymore. They say the Axim x50v isn't compatible with WM5.0. They also provide a ROM update to go back to WM2003 SE. I doubt there is much I can do unless I somehow get my hands on that Dell upgrade.
I tried an ARM build in a WM5 CAB - still the same error on the upgraded devices.

I confirm that PocketHAL/Frog work perfectly on brand new WM5 devices, it's just the upgraded devices which aren't working.

It might be more useful for us to collect some links to reference material about the problem so we can explain the issue to customers, as solving the problem might take too much effort for little gain considering the number of people I've heard of switching back to WM2003 on these devices.

Hate to sound defeated but there seems to be a fundamental problem only the manufacturers can solve here, and as they don't support the upgrade, can we be expected to?
I have tested PocketHAL on a Torq TEN (WM5.0) and it works properly.

This problem is exclusive for upgraded ipaq 4700. At least my problem. My game works fine on all tested WM5 devices, but fails to start on ipaq 4700.
And it's not the problem with image loading - game fails in the very beginning, can't even create a log file.
I have upgraded my Axim x50v to WM5.0. The PocketHAL samples work perfectly well. No crash, no exception, nothing. I also tried PocketFrog's Plasma sample. No issue there.

I compiled using EVC4 (ARMV4 - Release, Pocket PC 2003 device).

Can you send me a simple project that exposes the problem? I have VS2005 installed, so you can send me a project for it if you want.
The problem reports I'm seeing are always with people that did an iPAQ 4705 upgrade to Windows Mobile 5. The behavior is always the same (quoting from a user):
"When I try to open the program the screen momentarily changes as if it is going to load, then the program promptly exits."

There are now too many reports to be isolated user configuration issues. It's quite weird that an OS upgrade does this, the game runs fine both in Windows Mobile 5 and 2003.

Jorge Diogo
Ludimate
jdiogo wrote:The problem reports I'm seeing are always with people that did an iPAQ 4705 upgrade to Windows Mobile 5. The behavior is always the same (quoting from a user):
"When I try to open the program the screen momentarily changes as if it is going to load, then the program promptly exits."
Ludimate


Yes, right! That's exactly what I'm talking about. Too bad Thierry doesn't have an 4700/4705, but well, maybe he'll be able to do something without it.
Here is a version of the PocketHAL library (for ARM) that will log some info on the device. When you run your code, it will create a file named "Log_PHAL.txt" in your device's root. PocketHAL will then dump an execution trace into that file.

Could you run your code (with this log-enabled library) and send me the log file? This will help us narrow down what the issue is on the ipaq 4700.
Sorry it took so long to get round to this - the logged version has been run on both the WM5 emulator available with VS2005, and the customer's hx4700 upgraded to WM5, to see the difference.

It seems I can't add attachments, so I'll just show them here:

WM5 Emulator
Code:
PocketHAL (Version 0.7.7)
Display::Create( hwnd = 7C07B3B0, W:480, H:640, O:0, S:1 )
Initializing display...
VideoDetect::DetectDrivers()
GDIDriver: Detect()
GDIDriver: Found W:480, H:640, D:16
GAPI: Detect()
GAPI: Loading GX.DLL
GAPI: Calling GXOpenDisplay( 7C07B3B0, GX_FULLSCREEN )
GAPI: Calling GXGetDisplayProperties()
GAPI: Detecting orientation
GAPI: Native orientation is 0
GAPI: Calling GXIsDisplayDRAMBuffer() @ 02381538
GAPI: GXIsDisplayDRAMBuffer() returned
GAPI: Detecting PocketPC model
OEM String: "Microsoft DeviceEmulator"
GAPI: framebuffer address unknown, calculating offset
GAPI: Offset is 0
GAPI: Calling GXBeginDraw() to retrieve framebuffer
GAPI: framebuffer at 4a500000
GAPI: Calling GXSetViewport()
GAPI: Calling GXEndDraw()
GAPI: Final framebuffer address = 4a500000
GAPI: Calling GXCloseDisplay()
DriverVGA: Detect()
DriverVGA: Raw info: W:480, H:640, X:2, Y:960, FB:4A300000
DriverVGA: Native orientation is 0
DriverVGA: Found W:480, H:640, D:16
DriverVGA: Offset is 0
DriverVGA: Final framebuffer address = 4a300000
CreateDriver( 00000009 )
Initializing video driver...
DriverVGA: Initialize()
Driver initialized!
Success, returning display params to caller (W:480, H:640, O:0, S:2)


WM5 hx4700
Code:
PocketHAL (Version 0.7.7)
Display::Create( hwnd = 7C07F070, W:480, H:640, O:0, S:1 )
Initializing display...
VideoDetect::DetectDrivers()
GDIDriver: Detect()
GDIDriver: Found W:480, H:640, D:16
GAPI: Detect()
GAPI: Loading GX.DLL
GAPI: Calling GXOpenDisplay( 7C07F070, GX_FULLSCREEN )
GAPI: Calling GXGetDisplayProperties()
GAPI: Detecting orientation
GAPI: Native orientation is 0
GAPI: Calling GXIsDisplayDRAMBuffer() @ 02321538
GAPI: GXIsDisplayDRAMBuffer() returned
GAPI: Detecting PocketPC model
OEM String: "HP iPAQ hx4700"
GAPI: framebuffer address unknown, calculating offset
GAPI: Offset is 0
GAPI: Calling GXBeginDraw() to retrieve framebuffer
GAPI: framebuffer at 4c100000
GAPI: Calling GXSetViewport()
GAPI: Calling GXEndDraw()


Seems it stops short...
This is extremely bizarre. It calls GXEndDraw() and that never returns. I wonder if the GXSetViewport() is causing the problem.

Do you have a GAPI program/sample? If so, add this before GXEndDraw():

Code:

GXSetViewport( 0, 0, 0, 0 );


PocketHAL does that to ensure that the screen is NOT updated during detection. Maybe the upgraded ipaq 4700 doesn't like it.

Can you try this and let me know if it crashes in the same way?
I don't believe I can do this as I don't have the PHAL source, only the lib. Could you provide another lib build I can try out?

Thanks
ml wrote:I don't believe I can do this as I don't have the PHAL source, only the lib. Could you provide another lib build I can try out?

Thanks


You sure can do this, it's GAPI. Just grab any sample.
That's fixed it!

I guess we just need a non-logging corrected build now. Thanks for your efforts!

Output as follows:

Code:
PocketHAL (Version 0.7.7)
Display::Create( hwnd = 7C07C5F0, W:480, H:640, O:0, S:1 )
Initializing display...
VideoDetect::DetectDrivers()
GDIDriver: Detect()
GDIDriver: Found W:480, H:640, D:16
GAPI: Detect()
GAPI: Loading GX.DLL
GAPI: Calling GXOpenDisplay( 7C07C5F0, GX_FULLSCREEN )
GAPI: Calling GXGetDisplayProperties()
GAPI: Detecting orientation
GAPI: Native orientation is 0
GAPI: Calling GXIsDisplayDRAMBuffer() @ 02321538
GAPI: GXIsDisplayDRAMBuffer() returned TRUE
GAPI: Detecting PocketPC model
OEM String: "HP iPAQ hx4700"
GAPI: framebuffer address unknown, calculating offset
GAPI: Offset is 0
GAPI: Calling GXBeginDraw() to retrieve framebuffer
GAPI: framebuffer at 4c100000
GAPI: Calling GXEndDraw()
GAPI: Final framebuffer address = 4c100000
GAPI: Calling GXCloseDisplay()
DriverVGA: Detect()
DriverVGA: Raw info: W:480, H:640, X:2, Y:960, FB:4C800000
DriverVGA: Native orientation is 0
DriverVGA: Found W:480, H:640, D:16
DriverVGA: Offset is 0
DriverVGA: Final framebuffer address = 4c800000
CreateDriver( 00000009 )
Initializing video driver...
DriverVGA: Initialize()
Driver initialized!
Success, returning display params to caller (W:480, H:640, O:0, S:2)
Awesome! I will create a new build shortly.
A new build is available: PocketHAL 0.7.7d.

If you have make a donation in the past, send me an email and I will send you to updated version. It includes a workaround for the IPAQ 4700 upgraded to WM2003 SE.
Superb support from the engine (and Kzinti) that does it all - problem solved.

PocketHAL does exactly what it says on the tin (and plenty more).
Where i can download PocketHAL 0.7.7d. version ?
PocketHAL 0.7.7d is available when you make a donation. If you already made one, just drop me an email and I will send it to you.
Give your WebMoney numbers
I don't know what "WebMoney Numbers" are. I accept donations through PayPal.

See the following page:

http://www.droneship.com/pockethal/download.html