Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Dec 24, 2011 8:30 am 
Offline

Joined: Fri Nov 25, 2011 6:15 am
Posts: 3
Hi,

I am a new bie in the world of Bullet Physics. I have applied Internal Edge Utility in my project as per the bullet physics example demo "AppInternalEdgeDemo".

When I quit my project,I am getting memory leak error in following part of the code:


btTriangleInfoMap* triangleInfoMap = new btTriangleInfoMap();

btGenerateInternalEdgeInfo(trimeshShape,triangleInfoMap);

I don't have any idea how to delete( i.e. free memory) this triangleInfoMap object.


Please give your valuable suggestions...



Regards

huRR[i]c@ne


Top
 Profile  
 
PostPosted: Tue May 01, 2012 12:53 pm 
Offline

Joined: Sun Apr 29, 2012 3:22 pm
Posts: 10
I do this, before I delete my btBvhTriangleMeshShape collision shape

pTriangleInfoMap= static_cast<btBvhTriangleMeshShape*>(pShape)->getTriangleInfoMap();

delete pTriangleInfoMap;

and after this I delete my collision shape


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group