Skip to main content
Topic: r2173 (and some earlier) - access violation Pak128 (Read 3336 times) previous topic - next topic

r2173 (and some earlier) - access violation Pak128

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]
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: r2173 (and some earlier) - access violation Pak128

Reply #1
Most likely you start in a year where no road is defined yet?

Re: r2173 (and some earlier) - access violation Pak128

Reply #2
No, since this happens before any savegame is loaded, and is idiosyncratic (happens sometimes and not others in apparently the same conditions).
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: r2173 (and some earlier) - access violation Pak128

Reply #3
pak128 error?

Re: r2173 (and some earlier) - access violation Pak128

Reply #4
I don't seem to be having this in recent builds. I suggest that this be marked as solved.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.