Page 1 of 1

Global variable

Posted: 29 May 2009 08:31
by fanioz
What happened with global variable (declared in root) if the 'reload ai' button is pressed? Runing 0.7.1 rc2, the openttd quit back to command line and said, segmentation fault (on ubuntu hardy).
On win xp, it display fatal box with crash report button. Or should I attach files and report them to bugs.openttd.org?
Note: my global variable is a table and contain function and instance of class. The crash happened when my TransAI crash and I would like to reload it. (Only occured with this un-released version)

Re: Global variable

Posted: 29 May 2009 11:37
by Rubidium
An AI that crashes OpenTTD itself is a big problem. We make the release candidates to catch those kinds of bugs that can be caused by fixing bugs. So please make a bug report for it.

Re: Global variable

Posted: 31 May 2009 01:08
by fanioz
I've to made something clear :
fanioz wrote:The crash happened when my TransAI crash and I would like to reload it. (Only occured with this un-released version)
un-released here, refer to TransAI not OpenTTD 0.7.1 RC-2

FS#2935 - Crash by AI