Another Character Problem (0.6)

Ridhan

11-05-2007 01:49:56

Hello

I'm having problems deleting my character after "killing" it.
My App crashes as soon as I delete it...

Any clue about why this may happen?

thanks :wink:

jchmack

11-05-2007 03:39:33

Hello

I'm having problems deleting my character after "killing" it.
My App crashes as soon as I delete it...

Any clue about why this may happen?

thanks :wink:


you probably have a hanging pointer somewhere still accessing it.

Ridhan

15-05-2007 02:42:07

Well, I've been searching for errors or referencing pointers already deleted, but everything seems ok.

I found something interesting though..the issue is specific with the character, because if i don't delete it (erasing my game character but leaving the capsule in the scene) there no crash. I'll try to explain a little better (my skills in english are not very good...)
I have a gameCharacter, made of many components: a character controller, status, sounds, etc... therefore, I've made a destructor to delete these components. So far all components are destroyed fine, but the character controller.
What I'm guessin is that "delete myCharacter" is not enough to safely destroy a char....