Thank you very much for your response.  Unfortunately I'm still stuck.

Actually, the problem is more that ClearPickedList doens't work correctly
once I do free the memory.  I'm pretty sure about where the memory leaks are
coming from, but fixing them breaks ClearPickedList (and only on the last
call).  As for putting ClearPickedList in AppStop, I have it in the exit
cleanup routine for this form, since that would take care of the memory held
by the form's list.  Once the form has been dismissed, that list no longer
exists, so it'd never tie up any more memory than what it had upon dismissal
of the form.  So any cleanup for this list actually has to go in the cleanup
for the form and isn't really helpful in AppStop.....

My problem is mainly that I add a picked item and call fill list which first
calls clear list.  This works repeatedly, but then once I try to exit the
form, and run ClearList without first adding a new item ClearList doesn't
work.

ie:
AddPickedItem
Clear List
Fill List

AddPickedItem
Clear List
Fill List

AddPickedItem
Clear List
Fill List

ClearList (this call doesn't work, memory has been deallocated)

The obvious difference between this call to Clear List and the working ones
is that they all have a preceding AddPickedItem, but I just can't see where,
in AddPickedItem, the code is that makes ClearList work.....



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

Reply via email to