News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

r5973 gdi -> freeze in ~loadsave_frame_t() on failure to write cache

Started by VS, October 10, 2012, 09:51:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VS

Short:
loadsave_frame_t::~loadsave_frame_t() tries to write a cache but proceeds even when the file can't be created.

Long:
loadsave_frame_t::~loadsave_frame_t() tries to write a cache. It calls file.wr_open which returns false because hte file could not be created. The caller (destructor) ignores this and proceeds, using the object in reading state for writing without valid file, and from there it all falls apart. When backtraced while frozen, program appears to be trying to find "<".


Don't ask how I managed to make that folder unwritable on Windows. It does not matter to the bug ;)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

TurfIt