Download MetaTrader 5

(bug) Crash in the MQL Editor using the Watch windows (inspecting strings parameters)

To add comments, please log in or register
Jin
1539
Jin  

Rosh,

I created a function that contains one parameter of type string and several other arguments of diferent types (like double, bool, etc), and everything was going fine.

Then I  included another parameter of type string to this function signature. After this modification, I started to receive an error of the type "Access Read Violation", and sometimes the editor simply crashes, disapearing from the screen.

Trying to discover what I did wrong, I realized that even with an simple function that takes 2 strings as arguments,  when you try to inspect the content of these arguments using the Watch window, this crash always happens.

Please help me. Thanks. 

 

void OnStart()
{
   string str1;
   string str2;

   str1 = "Crash when using the watch window";
   str2 = "with a function that takes 2 arguments of string";
   Dummy(str1, str2);
}
//+------------------------------------------------------------------+

void Dummy(string &a, string &b)
{
   Print(a);
   Print(b);   //<= breakpoint here
}

Rashid Umarov
Admin
12266
Rashid Umarov  
Thank for your message. We are fixing it.

Ilyas
1203
Ilyas  

fixed

To add comments, please log in or register