Strange error returning Actor

stalker87

07-10-2008 13:40:01

Hi all!
This is my first topic in this forum :)

I've a strange problem. After i use destroyBody() method to erase a Body that is no more useful i encounter this error:



I don't know why... It seems like the body object isn't totally erased.
Can you help me ? ^^

Prophet

07-10-2008 13:58:36

Are you sure it is a valid body?

stalker87

07-10-2008 14:14:15

Are you sure it is a valid body?

Oh... yes i'm sure. This body is the Actor* that is passed on startTouch callback as argument.

The strange thing is that if i debug into NxOgre step by step... there's no crash like this. In fact body is erased without problem :\

mcaden

07-10-2008 16:32:38

Sounds like you're destroying it but still trying to use the pointer for it at another point in the same frame.

Barring that...

What NxOgre version are you using?

stalker87

07-10-2008 16:42:56

I'm using 1.0 '21 version.

No ideas ?