The following simple script leads to generic Error 111: Crash in Script.
Code:
#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.