>... if I LOCK record's
>handle BEFORE resizing (do some operations on data) and then resize record
>and take new handle, what would happen with old handle when I call
>MemPtrUnlock (and then DmReleaseRecord)? If it wewen't changed by
>DmResize, it would be unlocked, but what would happen if it was?
If the object has to move in order to grow, and you've got it locked,
you'll get an error code back saying that it was locked and so the
operation failed.
You've got to unlock the object before trying to resize it if you want a
reliable resize to happen. You're just lucky that it works sometimes :-)
-David Fedor
Palm Developer Support