Box2D Forums

It is currently Sat May 25, 2013 1:08 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jun 28, 2012 2:38 am 
Offline

Joined: Mon May 28, 2012 4:49 am
Posts: 2
I am using the Box2D (v2.2.0) for Marmalade SDK extension found here.

I am currently getting a problem with memory leaks when I am using DestroyBody. It seems to be deleting the body but my debugger points towards a memory leak on the body's b2fixture and b2BodyDef inits.

I searched around and found that the port for 2.1a Flash version had the exact same problem. They have provided a solution but since I am not that well-versed with Flash I am unable to solve the problem.

Anybody over here has the solution? I get that I will need to change my Box2D extension but I dont know where. Please help.


Top
 Profile  
 
PostPosted: Sat Jul 07, 2012 11:31 am 
Offline

Joined: Tue Sep 25, 2007 2:22 pm
Posts: 483
That sounds like a contact event handler issue. Event handlers tied to objects can become pairs of objects that aren't referenced by anything outside of them, but aren't garbage collected properly.


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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:
Powered by phpBB® Forum Software © phpBB Group