r2870 GDI, MSYS+MinGW
If there is a Simutrans-Experimental savegame in save folder, simutrans will crash when I open "Load" dialogue.
But I can open "Save" dialogue without problem.
And also no problem with open/save bz2 savegame.
Quote
sim.exe caused an Access Violation at location 7c95b21a in module ntdll.dll Writing to location 10009740.
Registers:
eax=10009730 ebx=00000000 ecx=00000000 edx=061b6528 esi=061b6528 edi=00000000
eip=7c95b21a esp=0023ddec ebp=0023de60 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
Call stack:
7C95B21A ntdll.dll:7C95B21A RtlpWaitForCriticalSection
7C941046 ntdll.dll:7C941046 RtlEnterCriticalSection
77BF0ADD msvcrt.dll:77BF0ADD fclose
0044794A sim.exe:0044794A loadsave_t::close() loadsave.cc:243
...
else {
int err_no = ferror(fp);
> fclose(fp);
if(err_no!=0) {
success = strerror(err_no);
...
005DF7C7 sim.exe:005DF7C7 WinMain simsys_w16.cc:791
00401247 sim.exe:00401247
00401298 sim.exe:00401298
7C817077 kernel32.dll:7C817077 RegisterWaitForInputIdle
I did not manage to compile bzlib with Visual Studio. The lib-files from gnuwin at sourceforge crahs simutrans while reading settings.xml :( any help appreciated.
I use the mingw files for GCC and the home compiled ones for VSC++ 5.0, and both work fine.
Strange. Any Simutrans-Experimental savegame cause crash for me.
Problem will happen when I open "Load" window from "New Map" window.
Problem doesn't happen when I open "Load" window from "Options" window.
I don't know difference between, but 100% reproducible.
I crashes from me only using the save dialoge. I know why, omitting one time closing the BZ2-Lib correctly causes all strange stuff. Will look into this today evening.