Article # 306, added by Geoworks, historical record
| first | previous | index | next | last |

Locking VM block before sending to an object in that block.



Q. I am calling VMPreserveBlocksHandle on a VM file object block. Do
   I need to VMLock the block manually to send a message to an object
   within it?

A. It is a bad idea to call VMLock directly on an object block. If you
   just want to send a message to that object, use VMVMBlockToMemBlock
   to get the memory handle for that block, and then use ObjMessage.
   If you really need to lock that block, use VMVMBlockToMemBlock,
   followed by ObjLockObjBlock.