I converted the Mail app from the PalmOS_5_SDK_68K_R3 to prc-tools, converting 
the resources using both ptools to extract from the PRC and the open source 
rsrc2rcp Perl tool (I would be happy to buy the commercial one, except I don't 
have or ever want to have Windows).

It runs fine (palmos 4.1.2) - EXCEPT, when it is responding to 
sysAppLaunchCmdSyncNotify.  Then it gets a Fatal Exception, requiring a soft 
reset.  POSE says it is trying to access globals (and that is not allowed from 
SyncNotify).  I have been over and over the source, but I am new to Palm 
programming, and don't see where it is accessing any globals.  Besides, I would 
have thought it was working code.  I must have made a boo boo when converting.  
The only thing I did to the C code was add __attribute__((section("lib"))) to 
the functions not in Mail.c so that there aren't are reloc overflows.

How does one go about debugging the SyncNotify event?  I can't seem to figure 
out how to get control at the right time with gdb, and still have proper memory 
map.  I have no problem using gdb to debug sysAppLaunchCmdNormalLaunch on POSE.

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

Reply via email to