Errors, bugs, questions - page 2671

 

Guys, I took a job in freelancing. A customer sent me the file at the last minute. It looks like it was decompiled. I want to make sure it's true first before I complain. I'm attaching a piece of code.

int f0_0(string As_0, int &Ai_8, int &Aia_12[]) {
   string Ls_16;
   if (StringLen(As_0) == 0) return (-1);
   string Ls_24 = As_0;
   int Li_32 = 0;
   Ai_8 = 0;
   ArrayResize(Aia_12, Ai_8);
   while (StringLen(Ls_24) > 0) {
      Li_32 = StringFind(Ls_24, ",");
      if (Li_32 > 0) {
         Ls_16 = StringSubstr(Ls_24, 0, Li_32);
         Ls_24 = StringSubstr(Ls_24, Li_32 + 1, StringLen(Ls_24));
      } else {
         if (StringLen(Ls_24) > 0) {
            Ls_16 = Ls_24;
            Ls_24 = "";
         }
      }
      if (f0_2(Ls_16, Ai_8, Aia_12) == 0) return (-2);
   }
   return (1);
}

One of the functions. All the variables and functions look like this.

 
Except for the variables in the indicator settings, but they may have been changed before me.
 
Dmitri Custurov:

Guys, I took a job in freelancing. A customer sent me the file at the last minute. It looks like it was decompiled. I want to make sure it's true first before I complain. I'm attaching a piece of code.

One of the functions. All the variables and functions look like this.

Decompile unequivocally.
 
How do I split up with the customer in this case? The breach has been pointed out, but the deal has already been made. Will it be impossible to cancel except through arbitration?
 
Dmitri Custurov:
How do I split up with the customer in this case? The breach has been pointed out, but the deal has already been made. Will it be impossible to cancel except through arbitration?

Write to arbitration. I have notified the administration.

 
Sergey Dzyublik:

Bug MT5(build 2340) uses the same code twice: first pass - successful compilation, second pass - compilation error.
Apparently the problems are related to the template function generator cache.

The error disappears if for the template function "
void run(const T &ff)" the transfer by reference is replaced by the transfer by value"void run(const T ff)".

Thanks for the post, fixed

 

Thanks to the developers for providing namespace functionality.
However, why MT5 (build 2361) completely lacks intellisense support for namespaces, even for global via ::?

At the same time, there is support for intellisense for static class methods, for better or worse.
Therefore, from a user point of view, it is logical to ask: "Why not reuse the code responsible for intellisense in classes to implement intellisense for namespaces?".

 
Bug MT5 (build 2361) re-runs the script on the same chart when the first run is not yet complete and causes the terminal to hang.

The problem is observed for the main project where "mathematical calculations" are performed - there the terminal hangs dead.
The following code can be taken as an example to reproduce:
#define  K 1000
   
void OnStart(){    
   uint start = GetTickCount();
   printf("Start");
   while(GetTickCount() - start < 10*K){
      Sleep(1*K);   
      printf("Progress bar...");
   };
   printf("End");
}


Running the proposed script again on the same chart, when the first run is still incomplete, occurs without confirmation message.
A hang occurs for a few seconds - there is no "Progress bar..." output, then the terminal output flag is set andSleep is no longer triggered.
For the main project, after a hang for several seconds, the terminal does not develop at all - I have to kill the process.

 

is it possible to get the pass number from the tester agent?


ZS: or we need a unique identifier from each pass during testing for the file name - I want to save the EA settings during testing to a file, but we need something unique to form a file name with the settings

 
Igor Makanu:

is it possible to get the pass number from the tester agent?

There is only the data that is in the opt file. The format is available.

Reason: