Ah - is it simply because the text - Pointer of a visible Field is always in locked state?
Werner Poschenrieder schrieb: > Hi, > > does anyone know why the following code leads to an "unlocked chunk" > message? FldGetTextPtr actually requires unlocking (the lock count in > the lock:owner byte is 1 after retrieval). > > CharPtr ptcReleaseMe = FldGetTextPtr( > (FieldPtr)::GetObjectPtr(_wFieldId) ); > > if (!ptcReleaseMe || !*ptcReleaseMe) > GrfSetState(false, false, true); > > if (ptcReleaseMe) MemPtrUnlock(ptcReleaseMe); > > SysKeyboardDialog(kbdAlpha); // complains "unlocked chunk" when > ptcReleaseMe != 0 > > Thank you -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
