THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/04/2010 at 05:33, xxxxxxxx wrote:
FYI, the note in the BaseDocument documentation applies to objects of the BaseDocument class only.
This means you are allowed to use the list methods on objects/tags/materials etc.
Removing objects still leaves you with the responsibility to free them, for instance with blDelete() or the Free() methods.
Once a document is inserted into the documents list it is currently not allowed to remove it. Documents that are only allocated but not inserted can be deleted with blDelete.
Make sure to not modify an inserted document within a running thread. For instance inserting objects into a document from within an expression tag will lead to crashes. Use for instance StopAllThreads() in CommandData plugins before any modifictation of the document.
cheers,
Matthias