Hai all,
I have created a multi-segment project as follows:
File->New->Palm OS Application Stationery-> Palm OS
Multi-Segment APP. 
Project Settings: 68K Target set to �Expanded Mode
with A5-based Jumptable� and Data Type Sizes are set:
4-byte 'int' and 8-byte 'float'.
Since I need to use this project for c++ codes, i have
added 'MSL_C++_PalmOS_4i_DbgA4A5' and i replaced
'PalmOSRuntime_2i_A5' with  'PalmOSRuntime_4i_A4A5jt'.
then i added my C++ codes to the project now there are
28 segments in my project. I have not chnaged
Starter.c and MainForm.c files to .cpp extension. I
compiled project with out error and few �prototype not
declared� compile time warnings and also got one
linker warning saying "PalRez warning: output resourse
size is greater than -64k size limit: 'data1'".
After that i tried to debug the project, my
'PilotMain' is as follows: i just step into two three
lines and then stopped debugging, after stopping i am
getting the following Fatal Alert:
"i:\banzai\arm\core\emul68k\srcslowemu\run68k.c,
Line:3109, Invalid read from FFFFCFD0".
Can any one tell where i am going worng, do i need to
set any thing else in my project settings OR what this
Fatal Alert?

UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16
launchFlags)
{
        int argc = 2;
        char **argv ;//= {"-cp","JavaDb"};

        argv = (char **)MemPtrNew(8);
        argv [0] = (char *)MemPtrNew(20);
        argv [1] = (char *)MemPtrNew(20);

        StrCopy(argv[0], "-generateoptimized");
        StrCopy(argv[1], "Interpreter");
        main(argc, argv) ;
        return StarterPalmMain(cmd, cmdPBP, launchFlags);
}

Thank and Regards
hema


________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to