"Crash in Event" at start of level

Posted By: The_Clyde

"Crash in Event" at start of level - 02/01/09 22:02

When I load a certain level in my game, a message appears that says "Crash in Event".

I looked up the message in the help file, and saw that it is supposed to tell me which function crashed. The problem is that I have no function called "Event" nor do I use events in my game.

I can get past the error message by clicking "OK" several times, but then the level loads like normal after that and nothing seems out of place or non-functional apart from that error message.

How do I fix this, and why is it happening?
Posted By: heinekenbottle

Re: "Crash in Event" at start of level - 02/01/09 22:51

"crash in event" means that there was a missing pointer somewhere in the game. A pointer was somehow invalidated through an ent_remove, ptr_remove, level_load, or any other function that will remove an entity. Trying to access this pointer will result in this crash.

Try looking through all the code you added before this crash came into being.
Posted By: The_Clyde

Re: "Crash in Event" at start of level - 02/02/09 12:41

Is there anything else it could result from? I've looked through the code and can't seem to find the function causing the crash.

In the meantime I'll keep looking, thanks.
Posted By: EvilSOB

Re: "Crash in Event" at start of level - 02/02/09 12:48

try this
Code:
my=you=NULL;
level_load(whatever);

Posted By: The_Clyde

Re: "Crash in Event" at start of level - 02/03/09 00:19

Found the problem. There was a problem with the YOU pointer being empty when a function tried to access it. Added in an if(you) line
© 2024 lite-C Forums