I get the above "Free Handle" error message when running a gremlin and I
dunno why. It occurs at a call to MemHandleUnlock().
I have static handles like this:
static VoidHand apHandles[MAX_ELEMENTS];
static Char *apChars[MAX_ELEMENTS];
On my form's frmOpenEvent, I create the handles and lock the pointers:
for( iLp=0; iLp < MAX_ELEMENTS; iLp++ )
{
apHandles[iLp] = MemHandleNew( 100 );
apChars[iLp] = MemHandleLock( apHandles[iLp] );
}
On my form's frmCloseEvent, I unlock and free the handles like this:
for( iLp=0; iLp < MAX_ELEMENTS; iLp++ )
{
eErr = MemHandleUnlock( apHandles[iLp] );
eErr = MemHandleFree( apHandles[iLp] );
}
I can't get it to crash when I'm using POSE or the device, but when I run
gremlins, I get the above error in line 4359.
Help?!
Steve
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/