----- Original Message -----
From: "Joe Malone" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, August 29, 2002 10:55 AM
Subject: Re: FW: help!! Free handle Fatal alert


> --- jimena <[EMAIL PROTECTED]> wrote:
> > Why do I always get this fatal alert when I leave my application?
> >
> > MemoryMgr.c Line 4359, Free Handle
> >
>
> Answer: Bad programming.  (But don't worry about it, everyone makes
> mistakes sometimes!)
>
> Every Memory Manager routine that might write to the data storage area
> calls a routine to check the validity of the chunk handle before using
> it.  If that routine can't get a pointer to the chunk header, then it
> generates this error.
>
> So, you should look at your code and see where you are writing stuff.
> Since it happens when you leave your app, try looking at AppStop() --
> does it call PrefSetAppPreferences() by any chance?  If so, is the
> fourth argument a pointer or an unlocked handle?
>

You can get this when closing a database containing a record that has had
its handle freed. This situation can occur if you set a record handle in a
text field and don't set the text field handle to NULL before closing the
form. When the form closes, the text fields free their handles.

Matt




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

Reply via email to