removing physics bodies

This is a serious bug!
Talk about it in this thread:

http://developer.anscamobile.com/forum/2011/01/08/ansca-any-updates-physics-bodies-not-being-garbage-collected
During a chat with skype, Carlos confirm that this is set to high priority.
Marco
gugugames.net

[import]uid: 7518 topic_id: 3988 reply_id: 20149[/import]

I have a solution !

Don’t call addBody

:stuck_out_tongue_winking_eye:

Just kidding. I think I found the bug.

C. [import]uid: 24 topic_id: 3988 reply_id: 20159[/import]

Go Carlos go! :slight_smile:
Marco
gugugames,net
[import]uid: 7518 topic_id: 3988 reply_id: 20166[/import]

Oh great! I hope to see an update soon then! [import]uid: 26547 topic_id: 3988 reply_id: 20343[/import]

Any news? :slight_smile: [import]uid: 26547 topic_id: 3988 reply_id: 21383[/import]

@svartsomnatten

Build 277 Fix memory leak when using addBody() - case 2153
Marco
gugugames.net
[import]uid: 7518 topic_id: 3988 reply_id: 21702[/import]

Thank you! I don’t have access to the daily builds though, I guess I’ll have to wait (?) [import]uid: 26547 topic_id: 3988 reply_id: 21707[/import]

Great news!! [import]uid: 30185 topic_id: 3988 reply_id: 21708[/import]

Thanks also, this makes such a big difference. [import]uid: 10903 topic_id: 3988 reply_id: 22290[/import]

adding my name to the conversation. This bug is holding up my shipping. [import]uid: 13529 topic_id: 3988 reply_id: 25599[/import]

@emf715 the bug has been fixed in the latest build available in the daily drops for subscribers.

c. [import]uid: 24 topic_id: 3988 reply_id: 25604[/import]

That’s what I had thought, but when I run build 307, a get the following when the level begins to load:

/Applications/Corona.2011.307/Corona Terminal: line 9: 6264 Bus error “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
[import]uid: 13529 topic_id: 3988 reply_id: 25610[/import]

@emf715 that would be a different bug as the bug here was about removeSelf()

any code you can provide that I can see where the problem is?

Also, make sure that your require are “case sensitive” matches as the mobile devices are finicky. MD are case sensitive.

C. [import]uid: 24 topic_id: 3988 reply_id: 25611[/import]

Carlos: I sent my code to Sean (I had his address not yours). Depending on whether the original object is an image, movieclip, or sprite affects how the ‘phantom’ physics body acts, but it remains behind in all cases.
[import]uid: 13529 topic_id: 3988 reply_id: 25709[/import]

When can we (non subscribers) expect the new release? This is important to get rid of memory leaks due to addBody calls.

[import]uid: 12109 topic_id: 3988 reply_id: 27182[/import]