Debugger says ...
write access violation
AllDib was nullptr
simsys_w.cc:618
AllDib->bmiHeader.biHeight = (WindowSize.bottom*32)/y_scale;
I hope this helps.
[EDIT]
182 if( fullscreen ) {
183 create_window(WS_EX_TOPMOST, WS_POPUP, 0, 0, MaxSize.right, MaxSize.bottom);
184 }
185 else {
186 create_window(0, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, MaxSize.right, MaxSize.bottom);
187 }
188
189 WindowSize.right = MaxSize.right;
190 WindowSize.bottom = MaxSize.bottom;
191
192 AllDib = MALLOCF(BITMAPINFO, bmiColors, 3);
I set breakpoint at 186 and 189.
After stopped at 186, I clicked "continue", then program called WindowProc() before 189. And AllDib was NULL pointer.
But if I click "step in", program go to 189. And Simutrans start without problem.