How do I run a destructor before the end of the program?
I am writing a program that is basically just a bunch of critters running around.
I can create them fine...but how do I run the destructor on them when they die without waiting till the end of the program? |
You can use the
|
2 questions about that,
Does the .remove() actually run the destructor also? Does it free up it's resources, etc? Also, it throws a '...does not have .remove() function' error when I try to run it on my own class object. Do I need to do something special to include .remove()? |
Yes, it will free up resources used.
This method will work on Vizard's node3D objects. |
All times are GMT -7. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC