2 registered members (AndrewAMD, alibaba),
1,426
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: ent_remove(my) crash?
[Re: FBL]
#396274
03/05/12 08:57
03/05/12 08:57
|
Joined: Jul 2000
Posts: 27,986 Frankfurt
jcl
Chief Engineer
|
Chief Engineer
Joined: Jul 2000
Posts: 27,986
Frankfurt
|
Simple errors, like freeing an already-freed entity, are normally caught by the engine and will not cause a crash. If the error is not obvious, it could be something more sinister, such as something overwriting some internal memory areas.
For finding the reason of such a problem, reduce your application step by step until the crash disappears. First remove all external plugins, then disable all functions that access internal memory structs, then remove all effects. If then the problem still is there, send me that project and I'll look into it. I'm meanwhile sort of an expert in finding hidden bugs in user projects.
|
|
|
Re: ent_remove(my) crash?
[Re: jcl]
#396329
03/05/12 18:58
03/05/12 18:58
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
problem was that the terrain was removed from memory (level_free!) and the decal routine seems to lag one frame behind. Of course it accessed the non existant terrain then. That was the only plausible reason I found. it is directly related to a decal on a terrain.
ent_purge(map__sLevel.entTerrain); /* remove decals */
ptr_remove(map__sLevel.entTerrain);
wait (2); /* decals seem to need time... */
level_free();
Last edited by Firoball; 03/05/12 19:07.
|
|
|
Re: ent_remove(my) crash?
[Re: FBL]
#396330
03/05/12 19:04
03/05/12 19:04
|
Joined: Jul 2000
Posts: 27,986 Frankfurt
jcl
Chief Engineer
|
Chief Engineer
Joined: Jul 2000
Posts: 27,986
Frankfurt
|
|
|
|
|