At 10:47 AM -0500 2001/08/17, Bradly J. Barton wrote:
>I could not get a simple example to show this problem.. other than the size
>of the real application (my test was created under a large code model, just
>like the real application), my test made all the same initialization calls..
>my get preferences call is the first function called, so I don't see any
>buffer overflows, etc, that would be the common faults here.... I just fail
>to see why this particular application is having a problem..

So this tells me you've written a small test application and verified the Palm OS is 
not the problem. PrefGetAppPreferences returns noPreferencesFound (-1) the very first 
time you run your app with a newly created POSE session.

You also say that the application which is having the problem is large and complex. 
Have you considered the possibility of stack overflow when calling this function? How 
big is your sRegPrefs structure? How much stack is available at that point in your 
application? Try changing the code to dynamically allocate a pointer of that size to 
hold that struct, rather than allocating it on the stack, and see if that changes 
things.

Just some food for thought...

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
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