At 9:32 PM -0700 4/20/01, Blake Miller wrote:
>Please help me. I am running an application that I wrote using
>Codewarrior 7 that has been known to run before ( the code is fine,
>and was taken from another "known to work template").
>
>When I install it on the emulator, it installs fine. However, when
>I run it, I get an alert, right after clicking the application icon
>that says:
>
>"Launch Error"
>"The application could not be launched because of a system error"
>
>???
>I am completely stuck with this error. I'm almost positive the code
>is perfect, it's a very, very simple program that just displays an
>alert window (woohoo!).
At 6:48 PM -0700 4/20/01, Peter Epstein wrote:
>Have you tried debugging the application on the device? You can debug on a
>real device just as you do with the emulator. The emulator is pretty
>faithful, but there are a few differences.
The chances of this problem being Palm OS Emulator specific are
pretty low. There are no known differences between launching on the
two environments.
There are a few reasons for the application not being launchable.
For instance:
* There could be insufficient dynamic heap space to allocate the
application info block.
* There could be insufficient dynamic heap space to allocate the
application stack.
* Some previous operations could have somehow used up all available task IDs.
* The .prc file could be malformed (for instance, 'code'(0) or
'code'(1) could be missing).
I'm not sure which of these is most likely, but that's where I'd
look. (Actually, what I would do is modify Poser to tailpatch
SysAppLaunch so that I could examine the result code it returned.
But that's just me. Perhaps Blake could use PalmDebugger to break on
SysAppLaunch, step over it, and look at the result code in register
D0.)
--
-- Keith Rollin
-- Palm OS Emulator engineer
P.S. Check out the new e-mail address. [EMAIL PROTECTED] will work
for a while, but anyone mailing me needs to update to the new one
eventually.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/