NullReferenceException or IndexOutOfRangeException. When an exception occurs and is not caught by a try/catch block, the debugger pauses execution and indicates the error location. C# exceptions often include a stack trace. (In MQL5/C, there is no structured exception handling; instead errors set the _LastError code.)