Palm-meisters,

I am trying to get my application preferences in a function called from
StarterPalmMain when the launch code is sysAppLaunchCmdSyncNotify. It just
looks like this:

DPPreferenceType prefs;
UInt16 prefsSize;

 prefsSize = sizeof(DPPreferenceType);
 PrefGetAppPreferences((UInt32)'MWDP', appPrefID, &prefs, &prefsSize, true);

This causes a crash with an "invalid chunk pointer" message. But the same
code works find in a function called for the sysAppLaunchCmdNormalLaunch
code.

None of these are global variables (the appPrefID is a #defined constant).

Any idea why this should work so differently with the two launch codes?

Thanks,

Matthew Fleming



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

Reply via email to