MetaEditor crashing

 

Hello!

This indicator has an invalid array access which should normaly cause an 'Array out of range error', the force terminate the program. However, running the indicator in the debugger using the editor history button crashes my editor. I've tried several times, the issue persists. Someone please confirm this on the platform they're using. I'm running on windows 10 version 19043 x64 intel processor, editor version 2981.

Files:
Signal.mq5  2 kb
 

Your error is here:

int OnInit()
  {
   SetIndexBuffer(0, buys, INDICATOR_DATA);
   SetIndexBuffer(0, sells, INDICATOR_DATA);
   SetIndexBuffer(0, closes, INDICATOR_DATA);
 
Vladimir Karputov:

Your error is here:

Yes, but shouldn't the debugger be terminating the progam, rather than carrying on and crashing the editor?
 
Nelson:
Yes, but shouldn't the debugger be terminating the progam, rather than carrying on and crashing the editor?
Yes it should. It's an unpleasant bug present since several months.