> From: Tony Glaser
>
> void RetrieveDynamicStructure() {
>
>     if (PrefGetAppPreferences(APP_TYPE, dynamicPrefsID, NULL, &PrefSize,
> true))
>
>       DynamicStructure = MemHandleNew(PrefSize);
>       dynamicStructure = MemHandleLock(DynamicStructure);
>       PrefGetAppPreferences(APP_TYPE, dynamicPrefsID, dynamicStructure,
> &PrefSize, true);
>     }
> }
>

The first time you call PrefGetAppPreferences, you have to pass NULL for the
pointer to the prefs buffer *and* 0 for the pref size.  It looks like your
aren't passing in 0 for the pref size the first time.


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

Reply via email to