Preferences are stored by Creator/type, that 4 letter unique value that you
registered for  your application.

if you swiped sample code from the address book application most likely it's
using it's creator when you save them on app exit.

    PrefSetAppPreferences(appFileCreator, appPrefID, appPrefVersionNum,
        &gPrefs, sizeof(PreferenceType), true);

appFileCreator is defined somewhere and probably matches Addressbook instead
of your unique value (which you'll register before you release right ?)


-- 
Matt Disher
[EMAIL PROTECTED]


> From: "Dale Phiefer" <[EMAIL PROTECTED]>
> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Date: Thu, 4 Apr 2002 19:17:34 -0600
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Subject: Preference corruption caused by the Address application
> 
> This has me stumpted...
> 
> I wrote a small application that has it's own application
> preferences and it seems to work fine. I have tested this
> application alone and with other palm applications.  My problem is,
> if I store preference information and close the application, then
> start the Address application and simply exit it, going immediately
> back to my application, my applications preferences are corrupt!
> 
> I have tried all the other m125 applications (Calc, Clock, Memo
> Pad,...) and none of these effect my application, only Address.  All
> I have to do is start Address and exit and my other application's
> preferences are corrupt.
> 
> Can anyone provide a simple explaination of how the application
> preferences are stored in Palm memory and what might be causing this.
> 
> This is 100% repeatable, both on the m125 handheld and the Palm Os
> emulator.  Using the emulator was the way I found the corruption.
> 
> I'm using a m125 running Palm os v 4.0.1.   System has 8 meg of
> memory and is using no additional memory card.
> 
> My application name starts with a 'Z', so it is last in the list of
> applications.  Address starting with 'A' and being first in the list
> of applications. 
> 
> Any help on this one is appreciated.
> 
> Dale
> 
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/
> 


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

Reply via email to