I'm having an odd problem with MemPtrSize() returning 0 on a chunk that was locked with MemHandleLock. Here's the code:
MemHandle h; MemPtr m; h = MemHandleNew(24); // MemHandleSize(h) returns 24 m = MemHandleLock(h); // MemPtrSize(m) returns 0 There's no apparent error (after all MemHandleLock "can't" fail) and POSE doesn't give me any alerts about accessing out-of-bounds memory if I write to the pointer as if it were valid. Any ideas why this wacky behavior is happening? Adam -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
