At a first glance, the '1000' will overwrite the series and can thus cause a crash - the default LookBack is 80, sizeof(var) is 8, so a series has 80*8 = 640 bytes.