On 06/05/2015 at 07:06, xxxxxxxx wrote:
If I create an object in code, lets say, a Cube and then I perform some operations with it (with SendModelingCommand) and, at sometime I need to create a clone of if (for Current State to Object, for example), if I use the clone in the scene (if I insert it in the scene or I return it as the resulting mesh of an ObjectPlugin), what happens to the original Cube object?
It gets flushed once the scope leaves the code? Or does it hangs there, taking up memory and I should flush it manually, in code?
What about documents? If I create a new document, lets say with IsolateObjects , must I flush the document before returning from the code? Or is it flushed automatically once out of scope?