Hi,
i have a MemHandle in a struct which holds a char**, which stores multipe
strings.
When the application is exited, i want to store the struct in the
application preferences block.
After starting the application again, i want to get the stored struct out
of the application preferences block.
The problem is, when i call MemHandleLock(itemStrings1), i get a
MemHandleFree error.
Is the handle not stored correctly, or what is here the problem?
Best Regards
Peter
Enclosed you will find the code snip:
typedef struct {
int kundennummer;
MemHandle itemStrings1;
} AppPrefs;
AppPrefs myAppPrefs;
Exit Application:
PrefSetAppPreferences (CREATORID, 0, 0, &myAppPrefs, sizeof (AppPrefs),
false);
Start Application:
UInt16 size = sizeof (AppPrefs);
PrefGetAppPreferences (CREATORID, 0, &myAppPrefs, &size, false);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/