The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: jamespetts on December 20, 2008, 12:44:56 pm

Title: r2173 (and some earlier) - access violation Pak128
Post by: jamespetts on December 20, 2008, 12:44:56 pm
Code: [Select]
Whenever I try to use Pak128 (either original or nightly) in r2173 (and some earlier versions, too), I get the following error during pakset initialisation:

[code]Unhandled exception at 0x0045f051 in Simutrans.exe: 0xC0000005: Access violation reading location 0x00000014.

When I run the compiled code in debug mode, it points to the following line in weg_besch.h:

Code: [Select]
uint16 get_intro_year_month() const { return intro_date; }

Oddly, however, when I quit the game, load pak64, then start the game again, that error goes away, only to return if I quit the game and load pak128 again. Even more oddly, if, instead of loading pak64, I load pak96.comic, pak96.comic will load fine, but the error will still be there when I quit and reload pak128.[/code]
Title: Re: r2173 (and some earlier) - access violation Pak128
Post by: prissi on December 20, 2008, 10:22:40 pm
Most likely you start in a year where no road is defined yet?
Title: Re: r2173 (and some earlier) - access violation Pak128
Post by: jamespetts on December 20, 2008, 10:26:39 pm
No, since this happens before any savegame is loaded, and is idiosyncratic (happens sometimes and not others in apparently the same conditions).
Title: Re: r2173 (and some earlier) - access violation Pak128
Post by: prissi on December 30, 2008, 10:57:57 pm
pak128 error?
Title: Re: r2173 (and some earlier) - access violation Pak128
Post by: jamespetts on December 30, 2008, 11:13:37 pm
I don't seem to be having this in recent builds. I suggest that this be marked as solved.