|
Hi,
I have seen a lot of MB scripts include a clean up line - like this one:
del (FBSystem, FBComponent, lList, lScene, lGroups)
I know that Python has automatic garbage collection and would assume that everything that should only have one instance is setup as a singleton.. But I don’t know much about C++ or the Boost wrapper.
Can someone elaborate on the importance of explicit cleanup?
|
|
|
|
my felling is that if without explicit cleanup, the internal (MB core) object refereed by this python object could be destroyed later, while this python object (and thus ORSDK object) still exist, but refer to an invalid internal object. Anyway, it’s good habit to cleanup the stuff you created to avoid surprise.
|
|
|