Hello everyone,

I have problems with my code and I can't find a solution to my problem. Maybe I suck at searching, but I don't really know how to specify my question.

I have the following code-example:
Quote:

while (1)
{
ENTITY* dummy;
dummy = ent_create (NULL, vector(1,1,1), NULL);
ent_remove(dummy);
wait(-1);
}


It is supposed to create some empty object, delete it again, wait one second and keep doing this. But I keep getting a crash.
I thought that ent_remove would completely remove the entity so I can create it again. The vector would be different later everytime in case you wonder.

Did I overlook anything? Thanks for any help.
Yours,
Ykinger