The problem is almost surely that the string "abc" is being stored as a
global. String literals have to be stored somewhere, and the location varies
depending upon your target settings. If I recall, PC relative strings should
be turned on in order to keep them from being stored with the globals, thus
allowing access to them from launch codes where you can't access your
globals. Look is the 68K Processor panel of the target settings if you're
using Metrowerks. If I recall, there was an optimization caused PC relative
strings to be ignored, and forced off. I think it was suffix sharing.
Probably not something you'll need to worry about. In general, I prefer to
start with a working project, and avoid messing with the target settings.
It's surprisingly easy to break your application by changing target settings
;-)
--
Peter Epstein
> ----------
> From: Stefan
> Reply To: Palm Developer Forum
> Sent: Tuesday, May 1, 2001 4:54 PM
> To: Palm Developer Forum
> Subject: ExgRegisterData
>
> Hi all;
>
> When running this code in a 3.5 ROM on NT 4.0 I keep getting a Bus
> error. Has anyone run up against this before? I have noticed in the call
> stack there is a call to StrLen prior to the crash. I'm not calling
> StrLen
> so ExgRegisterData must be. Can ExgRegisterData be used without globals?
>
> case sysAppLaunchCmdSyncNotify:
> ExgRegisterData( 'stef', exgRegExtensionID, "abc" );
>
>
> Thank you
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/