I have developed some add-ons, indicators and drawing tools recently for my private use. During development, I had several occurrences of the NT8 application crashing outright, after apparently not catching unexpected exceptions. This was due to buggy code on my side.
While I can't remember or reproduce any of the exact circumstances that led to these application crashes, I wonder if we can work towards making NT8 more resilient against user programming errors. I believe NT8 should at least try not to crash as a result of an exception in custom code.
I have attached a minimal indicator example that demonstrates the issue. The only line added by me is the construction of an invalid DateTime (line 29).
Steps to reproduce (using NT 8.0.8.0):
- Add GurkCrash.cs to the Custom/Indicators folder
- compile
- right-click into a Chart window and
- select "Indicator..." from the context menu
This is sufficient to display the attached error message and subsequently crash the NT8 application.
Thoughts?
Kind regards,
Stefan.
Comment