I know an optr is a MemHandle and a ChunkHandle for an LMem heap. Now, if I
have an optr and I want the ChunkHandle, how to I get it? AND the optr with
0x0000FFFF ?
Next, what's wrong with this? I'm using the GenDocument system with output
sent to the process object. mapblock (lowercase) is a struct. It crashes
when I try to lock the lmem block, complaining I have an invalid handle. Is
there a way for swat to tell me which handle is the problem?
(And please don't anyone complain about my style of stuff like having
mapblock and mapBlock. My first concern is always getting it to work, then
cleaning it up.)
@method MyProcessClass, MSG_META_DOC_OUTPUT_INITIALIZE_DOCUMENT_FILE
{
VMBlockHandle mapBlock, objectvm;
MemHandle maphandle, OBlock;
mapBlock = VMAlloc(file, sizeof(mapblock), 0);
VMSetMapBlock(file, mapBlock);
map = VMLock(file, mapBlock, &maphandle);
objectvm = VMAllocLMem(file, LMEM_TYPE_GENERAL, 0);
map->objblock = objectvm;
VMLock(file, objectvm, &OBlock);
.
.
.
return(FALSE);
}
-------------------------------------------------------------------
| Edward Di Geronimo Jr. edwdig@bergen.org |
-------------------------------------------------------------------