My application runs perfectly in the emulator, but when installing it on the device (Nokia N91) it only gives a "System Error" when starting the application.
An app-TRK session showed that the execution didn't get far:
The initial breakpoint is here:
And NewApplication calls this function in e32base.inl:Code:GLDEF_C TInt E32Main() { return EikStart::RunApplication( NewApplication ); }
The value of aSize is 0, and the System Error occurs there.Code:inline TAny* CBase::operator new(TUint aSize) __NO_THROW { return User::AllocZ(aSize); }
Two questions:
- What's happening here; why does it differ with the emulator run...?
- How can I get the phone to display error code in case of a panic or system error?





