Here's a quick question...

To test for a valid handle I'm assuming I can say:

VoidHand hndl;

// get a handle to 16 bytes.
hndl = MemHandleNew(16)

if (hndl) {
  // handle was allocated properly
}
else {
 // handle is NULL and therefore alloc must have failed.
}


How do I test to see if a handle has been locked (especialy if I don't have
the pointer handy to test for NULL)?

Is there a function to get the lock count of a handle?

Thanks very much,

Steve Austin



Reply via email to