Calling the :destroy() method without previously calling the method :create() leads to a runtime error.
Method XbpMetaFile():destroy() Foundation
Releases the system resources of the object.
:destroy() --> self
This method returns the object executing the method (self).
The :destroy() method explicitly releases the system resources requested by the method :create(). Calling the :destroy()method is generally not required. When there are no remaining references to the XbpFileDev object, the system resources are implicitly released by the Xbase++ garbage collector.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.