Henk,
Could this be the reason... I have a struct to hold my app settings. I
make one declaration of that to be global. In appstart i allocate memory
for it with memptrnew and a temporary memprt. then i use in in many
functions with no problems. then in appstop i try to free the memory with
MemPtrFree(currentSettings); yet the simulator tells me i have an unfreed
chunk (same as the value of the pointer to the variable), and the device
softresets at this point. how can i free the chunk of mem i am using for
this variable? below is some relavent code from my app...
(the declaration is above all function calls, but below all function
headers)
typedef struct{
Boolean monitor;
UInt32 aUpdate;
Char* lastUpdate;
Char* license;
} appSettings;
appSettings *currentSettings;
(in appstart)
MemPtr temp;
UInt16 appSettingsSize;
appSettingsSize = sizeof(currentSettings);
temp = MemPtrNew(appSettingsSize);
currentSettings = temp;
(in appstop)
MemPtrFree(currentSettings);
--
Scott Erickson
Software Development Team, FB-4, Inc.
[EMAIL PROTECTED]
"Henk Jonas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Erickson wrote:
>
>> Hi,
>> Befor today my app was running pretty smooth. I did some work to it,
>> and now when ever i try to exit the app with the home button, i get a
>> soft restart. in the debugger it seems to make it past the AppStop()
>> function without errors, then after leaving pilotmain, it jumps to
>> assembly code and gives me an error, "unable to set all breakpoints for
>> current step operation, aborting step." this is after i hold F11 for a
>> few secs and run thru about 100 lines of assembly. What "could" be some
>> reasons for my app to make a soft reset after shutdown???
>>
>
> Memory trashing, stack overflow etc., I would guess.
>
> Regards
> Henk
>
> --
> -------------------------------------------------------------------------
> Henk Jonas [EMAIL PROTECTED]
> Palm OS � certified developer
>
> Please contact me, if you need an off-side contract worker.
> -------------------------------------------------------------------------
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/