Problem: How do I retrieve a large struct Preference which was stored by using 
MemPtrNew??

I was able to set the preference in my StopApp function this way:

MyPrefDB *prefP = (MyDB *) MemPtrNew (sizeof(MyPrefDB));
PrefSetAppPreferences(kCreator, 0, 1, prefP, sizeof(prefP), true);
MemPtrFree(prefP);

In my startApp function, I try to retrieve it using this code, but its giving me an 
error:

UInt16 PrefSize = sizeof(MyPrefDB);
MyPrefDB *prefP = (MyPrefDB *) MemPtrNew (sizeof(MyPrefDB));
PrefGetAppPreferences(kCreator, 0, prefP, &PrefSize, true);
MemPtrFree(prefP);

Am I doing this right?? Any help in this matter is greatly appreciated..Thanks in 
advance.
    

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

Reply via email to