Problem debuggin

 

I have problem when debugging. This occurs somethimes but not always.

MetaTrader 5, vs 1755.


I Press F5 in order debug a script.

Script is running in Chart A, GBPUSD. All fine.

I click in chart B,EURUSD, want to place an order. I press  F9 for order mask and now the script disappears and Chart A closes.

No error message. 

How to fix this ?

Thank you

Reason: