> /* Inside MSG_GEN_DOCUMENT_ATTACH_UI_TO_DOCUMENT */
>
> mapBlock = VMGetMapBlock(file);
> map = VMLock(file, mapBlock, &maphandle);
> primaryVMHandle = map->primaryVMH;
> VMUnlock(maphandle);
>
> char name[33];
>
> primaryVM = VMLock(file, primaryVMHandle, &objHandle);
> strcpy(name, objBlock->objData.name);
> @call newitem::MSG_GEN_REPLACE_VIS_MONIKER_TEXT(name, VUM_NOW);
> VMUnlock(objHandle);
> /* also tried directly using the string from the vm file instead of
copying *
> /
>
Now that I've looked at it a little longer, there are two variable that I
don't see where you defined them... "primaryVM" which may be just a typo
that's supposed to be "primaryVMH"...which I still don't see in the code
snippet where you defined and/or initialized it...and also "primaryVMHandle".
Neither of these is defined and/or initialized in the snippets. If this is
the case, this may be where your problem lies.
Lee