Honestly though, using an API incorrectly should not break the compiler, lol. And really, if adding an event handler at phases that are too early is capable of producing bizarre, catastrophic consequences like that, then NT8 should prevent it. Throw an exception, log an error to the output window, and then prevent the addition. Something that humans can easily understand and react to. A simple error message would have turned a highly mysterious 3 day problem into a 3 minute no-brainer. I cannot imagine adding that validation code would be very hard or time consuming either.
My 2 cents anyway. Regardless, thank you again for the help, much appreciated.
NinjaTrader_Jim, at this point, several things:
1. Can you validate that you see the behavior with the sample AddOn I have provided?
2. Is there a good explanation of how and why something like this could even happen?
3. Presuming that we are able to validate the behavior, will there be a fix? At minimum, is there a way you could put in a request to add validation code to NT8 as suggested above, to save future customers from these issues? (This isn't for me, it's just for the betterment of the NT ecosystem, which is good for everyone here.)
Cheers.
Comment