Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #732: delete CTVCamera *
Product:
TV3D SDK 6.5
Language:
C++
Current State:
Closed
Resolution:
Fixed
Created On:
July 31st, 2007
Last Modified:
August 15th, 2007
Reported By:
GD
There's an error every time I try to destroy camera pointer (not the camera itself).

CTVCamera *cam
cam = TVEngine-GetCamera()
delete cam //error

It works for meshes and stuff, but not for cameras. I don't want my apps to have memory leak :(

Comments:

Posted by GD on August 15th, 2007 at 12:13 PM
Error happening with MSVC++ 2005.
But, I've discovered DeleteTVObject in HelperFunctions.h. Now I know what it is for. :D
Posted by SylvainTV on August 15th, 2007 at 3:24 PM
Yep,

Looks like some compilers don't like to create an object in a dll, then delete in the user side.
DeleteTVObject will ensure that it's deleted in the DLL