|
3 registered members (AndrewAMD, juanex, Grant),
1,018
guests, and 8
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: possible Bug in file_save (A7.82.3)
[Re: jcl]
#305435
01/14/10 19:42
01/14/10 19:42
|
Joined: Feb 2006
Posts: 1,011 Germany
pegamode
OP
Serious User
|
OP
Serious User
Joined: Feb 2006
Posts: 1,011
Germany
|
I think I got a step further. I added some lines to my code:
var result = file_save(savename, savegame, sizeof(SAVEGAME));
diag("\nafter save.");
if (result == NULL) {
error("filesave error");
}
diag("\nafter save 2.");
ediag(fctName, LEVEL_INFO, _str("saved savegame."));
Then I wait until the crash occured and the logfile looks like this: [20:38:16] INFO [function save_game(STRING* savename)]: saving savegame. after save. Error E1513: Crash in save_game So the error occurs in one of the following lines:
if (result == NULL) {
error("filesave error");
}
Any ideas? Regards, Pegamode.
|
|
|
Re: possible Bug in file_save (A7.82.3)
[Re: jcl]
#305522
01/15/10 11:15
01/15/10 11:15
|
Joined: Feb 2006
Posts: 1,011 Germany
pegamode
OP
Serious User
|
OP
Serious User
Joined: Feb 2006
Posts: 1,011
Germany
|
Ok. So I have to do some checks ...
Strange that we could reproduce the problem since the var was renamed yet. Usually 1 out of 10 saves crashed.
Would you recommend to replace all malloc() with sys_malloc()?
Last edited by pegamode; 01/15/10 11:28.
|
|
|
|