StackOverflowException in indicator crashes CTrader
StackOverflowException in indicator crashes CTrader
13 Nov 2019, 10:55
Just an FYI... If I have an indicator that overflows the stack, it crashes the entire application in cTrader 3.6.
EDIT: I see this a feature of .net and is "by design" - https://stackoverflow.com/questions/206820/how-do-i-prevent-and-or-handle-a-stackoverflowexception
So no further action required. Still, makes it a little fun to debug this case - I had to be pretty quick attaching VS.net to the cTrader.exe process in order to see what was happening..
Replies
bishbashbosh
13 Nov 2019, 11:00
Hi Panagiotis,
My code was creating an infinite loop; as per update above, this is not a fault of cTrader, but a feature of the framework that StackOverflowException cannot be caught and terminates the process by default.
Cheers
@bishbashbosh
PanagiotisCharalampous
13 Nov 2019, 10:58
Hi bishbashbosh,
Can you share the indicator code as well as steps to reproduce?
Best Regards,
Panagiotis
@PanagiotisCharalampous