Discussion:
my program works in emulator but not on the device.
(too old to reply)
Gaurav
2004-09-16 01:30:03 UTC
Permalink
Hi all,

I wrote a series 60 GUI application. Its a simple applcation which
gets some info from the database and displays it on the screen.

I am able to run this application on the emulator but on the device.
It is giving me a system error. I have tested individual components
(GUI and database access)of this application on the device and they
all gave the desired results.

What could be the reason for a application for not running on the
device.

Gaurav Jain
Graham Holden
2004-09-16 08:33:56 UTC
Permalink
Post by Gaurav
Hi all,
I wrote a series 60 GUI application. Its a simple applcation which
gets some info from the database and displays it on the screen.
I am able to run this application on the emulator but on the device.
It is giving me a system error. I have tested individual components
(GUI and database access)of this application on the device and they
all gave the desired results.
What could be the reason for a application for not running on the
device.
Gaurav Jain
You don't actually say what the error is, so this is a bit of a
stab in the dark:

I've never used the 60 GUI, only written for the ER5 SDK (for the
5/5mx/7/netBook). One thing you had to be aware of there
(particularly when writing OPXs to hook into OPL) was that the
"real" Psion hardware didn't like (as in throw a panic) 32-bit
memory accesses that weren't aligned on a four-byte boundary. The
emulator would happily run such code. If you're doing anything
low-ish level with pointers etc., you might want to check for
alignment problems.

Regards,
Graham Holden (g-holden AT dircon DOT co DOT uk)
--
There are 10 types of people in the world;
those that understand binary and those that don't.
Gaurav
2004-09-17 13:45:27 UTC
Permalink
Thanks for the reply,

I dont think this is the problem.

I am getting a messge "System Error !" on the screeen. No error code
is dispayed. I get this error when i add iMyClass = CMyClass::NewL()
function to the ConstrucL function of my Container class. The NewL
function doesn't do much. except for returning a pointer to the
object.

Please Advice if you can.
Thakyou,
Gaurav Jain
Post by Graham Holden
Post by Gaurav
Hi all,
I wrote a series 60 GUI application. Its a simple applcation which
gets some info from the database and displays it on the screen.
I am able to run this application on the emulator but on the device.
It is giving me a system error. I have tested individual components
(GUI and database access)of this application on the device and they
all gave the desired results.
What could be the reason for a application for not running on the
device.
Gaurav Jain
You don't actually say what the error is, so this is a bit of a
I've never used the 60 GUI, only written for the ER5 SDK (for the
5/5mx/7/netBook). One thing you had to be aware of there
(particularly when writing OPXs to hook into OPL) was that the
"real" Psion hardware didn't like (as in throw a panic) 32-bit
memory accesses that weren't aligned on a four-byte boundary. The
emulator would happily run such code. If you're doing anything
low-ish level with pointers etc., you might want to check for
alignment problems.
Regards,
Graham Holden (g-holden AT dircon DOT co DOT uk)
Graham Holden
2004-09-17 14:27:28 UTC
Permalink
Post by Gaurav
Thanks for the reply,
I dont think this is the problem.
I am getting a messge "System Error !" on the screeen. No error code
is dispayed. I get this error when i add iMyClass = CMyClass::NewL()
function to the ConstrucL function of my Container class. The NewL
function doesn't do much. except for returning a pointer to the
object.
Please Advice if you can.
Thakyou,
Gaurav Jain
I don't know if things have changed in 6.0, but under ER5, a bare "System
Error!" message would be very unusual (you would nearly always get a
"panic" code, or some other number/message). However, it could be that
they've "simplified" the messages (i.e. removed all the useful
information).

In the absence of anything else to go on, the first candidate would be to
check that you're not short of memory. The next step might be to put some
kind of trace-messages into the body of CMyClass::NewL() to see how far it
gets... (maybe open, write-to and close a log file). Alternatively, post
the constructor/NewL/NewLC/ConstructL for both CMyClass and the container
class.


Regards,
Graham Holden (g-holden AT dircon DOT co DOT uk)
--
There are 10 types of people in the world;
those that understand binary and those that don't.

Loading...