Itamar
11-11-2012, 10:57
Ahoy ahoy!
This year our team decided to work with C++. I was reading this excellent pdf (http://firstforge.wpi.edu/sf/docman/do/downloadDocument/projects.wpilib/docman.root.c_and_java_documentation/doc1297) when a thought occoured to me: do I need to clear the memory of all the Command instances I create? If so, will it work to simply write "delete this;" at the "end" method?
Or maybe creating instances during runtime is not right at all, and all Commands should be created at the beginning and re-used while the robot runs?
Thank you,
Itamar
This year our team decided to work with C++. I was reading this excellent pdf (http://firstforge.wpi.edu/sf/docman/do/downloadDocument/projects.wpilib/docman.root.c_and_java_documentation/doc1297) when a thought occoured to me: do I need to clear the memory of all the Command instances I create? If so, will it work to simply write "delete this;" at the "end" method?
Or maybe creating instances during runtime is not right at all, and all Commands should be created at the beginning and re-used while the robot runs?
Thank you,
Itamar