Is it possible to jump to other segments in sysAppLaunchCmdFind (or any
other non-app launch code) using CodeWarrior 9.1's expanded mode?
veeery simple example -
I generate an expanded mode C++ application.
I create a new file which contains only this
#include <PalmOS.h>
#include <PalmOSGlue.h>
void DoAlert();
void DoAlert()
{ // do nothing
}
I create a new segment and put my new cpp file in there.
I add this code to my main cpp file:
void DoAlert(); // declare it
...
case sysAppLaunchCmdFind: // add to PilotMain
{
_CW_SetupExpandedMode();
DoAlert();
}
I change the code model to smart.
I compile and run it in the emulator.
I do a find with my app not active.
Error:
<blah> just changed the emulated program counter to 0x000000C. The address
is invalid because it's not in a valid memory chunk.
So I change my project type from "68k Application (Expanded)" to "68k
Application (Exp., A5-jumptable)".
Compile and try again.
Error:
<blah> just changed the emulator program counter to 0x8003B814. This
address is invalid because it's in neither ROM nor RAM.
Can anyone help?
expanded mode question 2:
I can use virtual functions in sysAppLaunchCmdFind, but only if I change
from "68k Application (Expanded)" to "68k Application (Exp., A5-jumptable)".
Why does "68k Application (Expanded)" not work, and if it doesn't work, why
is it the default set by the app wizard? If it does work, what is it good
for?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/