|
1 registered members (AndrewAMD),
1,014
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Error 111: Crash in Script, causes unknown
#451558
05/11/15 17:53
05/11/15 17:53
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
The following simple script leads to generic Error 111: Crash in Script.
#define MAX_POINTS 2000
typedef struct {
var a;
var b;
int c;
} MYST;
function unused(MYST* mysts) {
mysts[0].c = 0;
}
function run() {
StartDate = 20120815;
EndDate = 20120901;
var ds[MAX_POINTS];
var es[MAX_POINTS];
MYST fs[MAX_POINTS];
}
Strangely, the presence of function "unused" is significant (If I remove it, the script does not crash.) This defies all my debugging fu. What is going on here?
Last edited by GPEngine; 05/11/15 18:50.
|
|
|
Re: Error 111: Crash in Script, causes unknown
[Re: jcl]
#451676
05/16/15 02:57
05/16/15 02:57
|
Joined: Sep 2013
Posts: 504 California
GPEngine
OP
User
|
OP
User
Joined: Sep 2013
Posts: 504
California
|
Right. I'm not asking for perfect anticipation of the stack usage or live monitoring of the stack. I'm just asking for a sanity check regarding local variables, considering that the stack size Zorro allocates is much smaller than what -- pardon the generalization -- application programmers may be used to.
Last edited by GPEngine; 05/16/15 03:55.
|
|
|
|
|
|