I have an EFS that ran for months flawlessly under pre-7.8 releases. It also seemed to run for about 1 month after upgrading, but now errors.
After some playing, I determined that execution hit a section of code that did a getYear(barno); and that execution for that bar/tick stopped at that point (even though it shouldn't) and then when the next tick came in I got an error because some variables had not been initialized.
After reducing the code to a test case (see attached) I found that it happened even with a very simple segment of code. After looking at it, I saw why it didn't work and fixed the code (I was using an absolute bar index for a function that wants a relative bar index). I bring this up to:
1) Point out that the results are inconsistent between releases
2) Not correct for either result (it should throw and error and continue, not abort execution nor produce seemly valid results)
3) Warn others that may run into the same problem.
Thanks for letting me whine...
Garth
After some playing, I determined that execution hit a section of code that did a getYear(barno); and that execution for that bar/tick stopped at that point (even though it shouldn't) and then when the next tick came in I got an error because some variables had not been initialized.
After reducing the code to a test case (see attached) I found that it happened even with a very simple segment of code. After looking at it, I saw why it didn't work and fixed the code (I was using an absolute bar index for a function that wants a relative bar index). I bring this up to:
1) Point out that the results are inconsistent between releases
2) Not correct for either result (it should throw and error and continue, not abort execution nor produce seemly valid results)
3) Warn others that may run into the same problem.
Thanks for letting me whine...
Garth
Comment