Re: Crash when trying to look at the stats of an overflowing station
Reply #8 –
I could reproduced crashing with both release version and my compiled nightly version. (Windows GDI)
Language is not a problem, I tested this with English, Japanese, and German, but crashed in any cases.
As I said in another topic, this problem is being reported from time to time.
http://forum.simutrans.com/index.php?topic=1714.msg17792#msg17792
[edit]
Nightly versions on wernieman's site don't have this problem.
Maybe, they don't contain ****ert code.
But, Windows versions on SF, both GDI and SDL contain ****ert code.
And this causes the problem.
void cbuffer_t::printf(const char* fmt, ...)
{
va_list ap;
va_start(ap, fmt);
int count = vsnprintf( buf+size, capacity-size, fmt, ap);
****ert(count >= 0);
if(capacity-size <= (uint)count) {