Removing IsolateObjects document
-
I am using
IsolateObjectsto copy an object into a separate document in order to render a preview of the isolated object.The documentation mentions "The caller owns the pointed document."
Do I simply need to perform aBaseDocument::Freeon the obtained document?
Or do I need to callKillDocument? -
I was reading the original R20 documentation, when the above question popped up.
Luckily, the latest online SDK documentation contains a BaseDocument Manual, where it mentions (if I understand it correctly) thatKillDocumentis to be called to remove a BaseDocument from the list.
Which meansKillDocumentshould only be used if a BaseDocument was created and inserted in the list (viaInsertBaseDocument).So, as long as I use
IsolateObjectswithout performing anInsertBaseDocumentI should be fine with calling BaseDocument::Free to free the obtained basedocument.
If I perform anIsolateObjectsand subsequently callInsertBaseDocumentthen I should useKillDocument.
Correct? -
hi,
yes,
KillDocumentis not necessary in that case.Cheers,
Manuel