I'm quite sure.
This is the code I use:
ediag(fctName, LEVEL_INFO, _str("saving savegame."));
var result = file_save(savename, savegame, sizeof(SAVEGAME));
if (result == NULL) {
error("filesave error");
}
ediag(fctName, LEVEL_INFO, _str("saved savegame."));
ediag is an extension to diag.
In my logfile I see the following:
[17:14:21] INFO [function save_game(STRING* savename)]: saving savegame.
Error E1513: Crash in save_game
"saved savegame." isn't logged out.
So the error should either be in file_save or in the ediag after the file_save.
ediag is used hundreds of times in the whole project without any problems, so it would make me wonder if there's a problem with this one, but I'll change it to a "normal" diag to check it out.
The error occurs seldom and sporadically so it's not that easy to reproduce. Even if I load the savegame that was saved when the error occured and then save again directly after loading, the error doesn't occur. So it could time some time to reproduce it (hopefully I'll get it soon).
Any other idea what it could be?
Regards,
Pegamode.