Errors, bugs, questions - page 2444

 
Sergey Dzyublik:

Turn down the aggression.

 
fxsaber:

On the developer side, all that is needed is the will, as it takes one minute to do it.

You only need to give the native code hash before "obfuscation" in EX5.

Well it also changes without changing the code, if I understand correctly.
 
Andrey Khatimlianskii:
Well, it also changes without any code changes, if I understand correctly.

The compilation result is always the same. There is no randomness there.

And then this result is pushed to EX5, where the protection is on random.

 
fxsaber:

About removing extra spaces, the problem is solved in 4 lines via SQL-style:

   string test = "AB C  D   E    F     G";
   Print(test);
   
   string delimeter = "{}?##%%";
   StringReplace(test, "  ", " " + delimeter);
   StringReplace(test, delimeter + " ", "");
   StringReplace(test, " " + delimeter, " ");

   Print(test);

Result:

2019.04.24 15:08:09.150 Test (EURUSD,H1)        AB C  D   E    F     G
2019.04.24 15:08:09.150 Test (EURUSD,H1)        AB C D E F G



The main thing is desire, as they say.

 
Sergey Dzyublik:

About removing extra spaces, the task is solved in 4 lines via SQL-style:

string test = "AB C  D \"   \"  E    F     G";
 
fxsaber:

The compilation result is always the same. There is no randomness there.

And then this result is flushed into EX5, where the protection is on random.

And a checksum that does not depend on changes in ex5 gets into opt?

Then yes, developers could give access to it.

 
fxsaber:

Do you need to solve a problem, or find a reason not to solve it?

 
Andrey Khatimlianskii:

And opt gets a checksum that does not depend on changes to ex5?

No, it is ex5 that gets into opt. This is the reason why recompiling resets the tester's cache.

 
Sergey Dzyublik:

Do you need to solve a problem, or find a reason not to solve it?

The task has been voiced. I need the result of the program's execution to be reset to a file with a different name when the logic (native code) is changed.

 

The program doesn't work, I found out by experience that it crashes on this line:

boost::asio::connect(*socket_, endpoint); (from tick_receiver.cpp )

from this function:


_DLLAPI int __stdcall client_connect(int port){ // no variable size here for this error


boost::asio::ip::tcp::resolver resolver(io);

boost::asio::ip::tcp::resolver::results_type endpoint = resolver.resolve("127.0.0.1", std::to_string(port));

boost::asio::connect(*socket_, endpoint); // here falls

return 1;

}



2019.04.24 15:17:45.306 test_tick_receiver (EURUSD,H1) Access violation at 0x00007FFC1AF29200 read to 0x00000000000000000000 in 'C:\Users\rukpe\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Experts\tick_receiver.dll'

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) crash --> 00007FFC1AF29200 498B4D00 mov rcx, [r13+0x0]

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 00007FFC1AF29204 33C0 xor eax, eax

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 00007FFC1AF29206 49837D08FF cmp qword [r13+0x8], 0xff

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 00007FFC1AF2920B 742D jz 0x7ffc1af2923a

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1)

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 00007FFC1AF2920D 33D2 xor edx, edx

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 00007FFC1AF2920F F0480FB15138 lock cmpxchg [rcx+0x38], rdx

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 00007FFC1AF29215 740C jz 0x7ffc1af29223

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1)

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1)

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 00: 0x00007FFC1AF29200

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 01: 0x000001BA759C1F40

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 02: 0xFFFFFFFFFFFFFFFFFF

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 03: 0x000001BA6E450000

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 04: 0x000001BA7575C5A0

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 05: 0x0000002E16AFE670

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 06: 0x00000FED243F54C5

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 07: 0x000001BA6E452000

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1) 08: 0x00007FF7DAEC6000

2019.04.24 15:17:45.338 test_tick_receiver (EURUSD,H1)


Files:
1.zip  54 kb