PocketMatrix forums

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

Crash in Windows CE .NET

Hi all.

First I built my app. in eVC3 for devices with Windows CE 3.0 and ARM processor. PF worked like magic!

Later on I tried to build the same app. in eVC4 for devices with Windows CE .NET and ARM processor. Everything compiled nicely. I also rebuild the PocketFrog_ARM.lib in eVC4. Compiled just fine. The problem was when I ran the app. it crashed. The crash occured, I think, when display->Update() was called.

Anybody got any clue?

/Slim
What device does it crash on? Or was it the same device both times?

Can you post some code to look at? Did you call GetDisplay() before calling Update()?
Maybe this could help.
In Pocket Frog 0_8_1 (I suppose in 0_8_0 also) this will crash after one ore more Updates (don't call GetDisplay in GameInit)
Code:

class YourGame::public Game()
{
Display * pDisplay;
};

bool YourGame::GameInit()
{
pDisplay = GetDisplay();
}

void YourGame::GameLoop()
{
//Draw something
pDisplay->Update();
}
BIGBEN wrote:Maybe this could help.
In Pocket Frog 0_8_1 (I suppose in 0_8_0 also) this will crash after one ore more Updates (don't call GetDisplay in GameInit)


That's by design. Here is what you need to do until the next version:

Code:

void YourGame::GameLoop()
{
Display* pDisplay = GetDisplay();
//Draw something
pDisplay->Update();
}
Thanks for replying.

My problem is still not solved.

More background information:
My device is not running on pocket pc. It's a rugged device (field handheld computer) running on Windows CE .NET 4.10 with an ARM-XScale processor.

Had to get down to basic so I tried to run the small and simple "minimal.exe" from the PHAL-samples and again, it worked perfectly on the WinCE 3.0 device but not on the CE.NET (Game crashed and I got a messagebox with "...minimal.exe has performed an illegal operation... Exception:0xc0000005,Address:00016a00)

How can I make PHAL run on my device? Any idea at all?

/Slim
I will need more details on your device to help you. What exactly is this device? What platform is it? (PPC? Something else?)

Any links/infos you can provide?
Hi Thierry,

The rugged device running on Windows CE .NET 4.1 is called "Recon".

I found a link on TDS's homepage
http://www.tdsway.com/press_room/press_database/press_release_archive/20030206-ReconIntro

My device model is the Recon 200C.

I don't know whether the information above will help you or not. Maybe there's a way of getting more information from my Recon - the only thing I found from "Control panel->Settings.." where the operating system and the processor. Are there other things of interest?

Once again, thanks a lot for taking your time helping me out!
/Slim
Has anyone managed to run PocketFrog/HAL on a device with Windows CE .NET 4.1 or 4.2?

/Slim
PocketHAL was reported to run on multiple Windows CE 4.1 and 4.2 devices. This one (Recon) is the first one I heard where it doesn't work. I am afraid there isn't much I can do to help you.

1) Does it have GAPI (GX.DLL)?
2) Does your app run in user or kernel mode?
3) Which version of the XScale does it use? (PXA25x, 26x, 27x)?
4) What video controller does it use? The internal XScale one or some external chip?
Thierry wrote:
1) Does it have GAPI (GX.DLL)?
2) Does your app run in user or kernel mode?
3) Which version of the XScale does it use? (PXA25x, 26x, 27x)?
4) What video controller does it use? The internal XScale one or some external chip?


1)I don't think that it has GAPI (is this really necessary?)

2) How can I determine whether my app is running in user or kernel mode? I googled about this and found that you can set this with a command: SetKMode(bool). The thing is that this command is available in a header file called "Pkfuncs.h" which I don't have (where can I get it?).

3) The processor is a XScale PXA255.

4) Can't tell... But I'm pretty sure it doesn't have an external chip. Is there a way to check this out?

I really hope I can sort this out with your help Thierry. Thanks again!

/Slim
I'm having the exact same problem using WinCE4.2, exception at 0xc0000005, Address:03f8c684
Compiling using Embedded visual C++ 4
Compiling for XScale.
If you find a solution to your crash. Please post it here at the forum.

Rgds,
/Slim
Does anybody know if this problem has been solved ? I'm having the same problem with eVC++4 with a PocketPC 2003 machine.