Given the following file header.as,
funcdef void functype();
shared class classname {}
and two separate script modules that are both loaded by the application, in this order,
#include "header.as"
#include "header.as"
classname classinstance;
my application consistently crashes when the modules are closed. (Pasting the contents of header.as into each module instead of using #include doesn't make any difference, but this felt clearer.) Removing any of the lines prevents the crash. Loading (and therefore probably closing) the modules in the other order prevents the crash.