On 2006-09-19, Luc Le Blanc <[EMAIL PROTECTED]> wrote: > When the PalmOs built-in keyboard is launched from within my app and the > Launcher button is tapped, my app gets a fldChangedEvent for the > currently edited field (even if no change was made) but if I try to call > a field API on the pField passed in the event, I get an unallocated > chunk error. How can I tell the app is closing and I must ignore such false > events? Both the form pointer and the field pointer are valid, although > the field text pointer is now invalid, but how can I tell without asking > the field, an thus causing the error? >
Is the unallocated chunk error on the field pointer or the field text pointer? You could check with MemHandleSize() if the text field is still allocated. It will return a size of 0 if it is not. HTH Ton van Overbeek -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
