Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TedMar, dr_panther), 1,049 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
"Crash in Event" at start of level #249347
02/01/09 22:02
02/01/09 22:02
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
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?

Re: "Crash in Event" at start of level [Re: The_Clyde] #249349
02/01/09 22:51
02/01/09 22:51
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
"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.


I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: "Crash in Event" at start of level [Re: heinekenbottle] #249413
02/02/09 12:41
02/02/09 12:41
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
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.

Re: "Crash in Event" at start of level [Re: The_Clyde] #249414
02/02/09 12:48
02/02/09 12:48
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
try this
Code:
my=you=NULL;
level_load(whatever);



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: "Crash in Event" at start of level [Re: EvilSOB] #249515
02/03/09 00:19
02/03/09 00:19
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
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


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1