How to reproduce:
// Run this from FlexSim script console: string s = "The quick brown fox jumps over the lazy dog."; Array substrings = []; for (int i = 1; i <= 1000; i++) { substrings.push(s); } string verylongstring = substrings.join("\n"); // return verylongstring.length; // OK return verylongstring; // CRASH
This is probably a GUI issue.