Frees resources allocated during the creation of a DOF. This call must be made for each created DOF when the DOF is no longer required—usually during program termination. In addition to deallocating memory, calls to _Destroy functions in the API stop threads and attempt to clean up state associated with objects. When destroying a DOF, you should follow these steps:
The DOF_Destroy function runs asynchronously. There is no guarantee that the DOF has finished being destroyed when this function returns. Any attempt to use a destroyed DOF will result in undefined behavior.
|