Access violation at 0x000000007FFF00D6 read to 0xFFFFFFFFFFFFFFFF

 
Hi every one.
Please help me how solve error in backtest after updating mt5 and compiling  my program:
Access violation at 0x000000007FFF00D6 read to 0xFFFFFFFFFFFFFFFF

In forum I found several similar problem   but no clear answer.

 Thanks.
 
mohsen bahrami:
Hi every one.
Please help me how solve error in backtest after updating mt5 and compiling  my program:
Access violation at 0x000000007FFF00D6 read to 0xFFFFFFFFFFFFFFFF

In forum I found several similar problem   but no clear answer.

 Thanks.
That's an MT5 bug which is triggered by something in your code. You will need to reproduce it and provide the code (and all needed technical details) to MQ for them to fix it.
 
Thanks.
When I use previous version of mt5, no error I have.
How can I get previous updates of mt5  and install it?
 
mohsen bahrami:
Hi every one.
Please help me how solve error in backtest after updating mt5 and compiling  my program:
Access violation at 0x000000007FFF00D6 read to 0xFFFFFFFFFFFFFFFF

In forum I found several similar problem   but no clear answer.

 Thanks.

That's not a bug, according to the error message you are trying to access address in memory that you don't have permission.

for example you define x as an array with 10 length, if you want to access to x[11] you will get this error.

review your code and it will fix

 
Hamed Zafar #:

That's not a bug, according to the error message you are trying to access address in memory that you don't have permission.

for example you define x as an array with 10 length, if you want to access to x[11] you will get this error.

review your code and it will fix

This is an MT5 bug.

What you are describing is an "Array out of range" error and has nothing to do with the error message.

 
Alain Verleyen #:

This is an MT5 bug.

What you are describing is an "Array out of range" error and has nothing to do with the error message.

Only on a laptop I can  compile and run the program without any errors. The exe file created can also be run on other computers without any errors .  when it is compiled on other computers , there is the access violation error at runtime.
 
mohsen bahrami #: Only on a laptop I can compile and run the program without any errors. The exe file created can also be run on other computers without any errors . when it is compiled on other computers , there is the access violation error at runtime.

Then please describe in detail the difference between your laptop and the other computers, in terms of MetaTrader build, OS version and build, CPU, RAM, etc.

 
Fernando Carreiro #:

Then please describe in detail the difference between your laptop and the other computers, in terms of MetaTrader build, OS version and build, CPU, RAM, etc.

Thanks. I am tired to have to explain again and again that technical details are needed to figure out and fix issues.
 

I have this error with a MT5 version of FFC news indicator found here:

https://www.forexfactory.com/thread/19293-ff-calendar-indicator-for-mt?page=46

FFC_urlupdate_20210324-offset-minutes.mq5


It's with MT5:

2024.07.10 14:17:48.840 Terminal MetaTrader 5 x64 build 4424 started for MetaQuotes Software Corp.

2024.07.10 14:17:48.840 Terminal Windows Server 2022 build 20348, 48 x AMD EPYC 7402P 24-Core, AVX2, 49 / 127 Gb memory, 62 / 232 Gb disk, RDP, UAC, admin, GMT+1


Errors:


2024.07.10 16:52:48.338 FFC (XAUUSD,H1) Access violation at 0x00007FFEC3AF0592 read to 0x000001DE00000000 in 'urlmon.dll'

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)   crash -->  00007FFEC3AF0592 498B01            mov        rax, [r9]

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF0595 49BA70D8DA5673B6  mov        r10, 0xFD41B67356DAD870

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)                               41FD

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF059F 488B4008          mov        rax, [rax+0x08]

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05A3 498BC9            mov        rcx, r9

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05A6 FF15BC870E00      call       [0x00007FFEC3BD8D68]

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05AC EBC3              jmp        0x00007FFEC3AF0571

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05AE CC                int3      

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05AF CC                int3      

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05B0 CC                int3      

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05B1 CC                int3      

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05B2 CC                int3      

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05B3 CC                int3      

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05B4 4053              push       rbx

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05B6 4883EC20          sub        rsp, 0x20

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05BA 488BD9            mov        rbx, rcx

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05BD 488B8980020000    mov        rcx, [rcx+0x280]

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05C4 4885C9            test       rcx, rcx

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)              00007FFEC3AF05C7 0F855B960400      jnz        0x00007FFEC3B39C28

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 00: 0x00007FFEC3AF0592

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 01: 0x00007FFEC3AF03BC

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 02: 0x00007FFEC3AF0314

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 03: 0x000001DE517411E7

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 04: 0x000001DE53330468

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 05: 0x000001DE51752000

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 06: 0x0000000000000001

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 07: 0x00007FF64BF71CB1

2024.07.10 16:52:48.338 FFC (XAUUSD,H1) 08: 0x000001DE51741783

2024.07.10 16:52:48.338 FFC (XAUUSD,H1)


When I comment the lines for xml download and dll, it works, but it's useless because we want MT5 to get last news from forexfactory.

Is it possible to download the xml with no dll ?

FF Calendar Indicator for MT
FF Calendar Indicator for MT
  • www.forexfactory.com
Share ideas, debate tactics, and swap war stories with forex traders from around the world.
Files:
FFC.mq5  73 kb
 
Pascal Gilles Christian Garcia #:

Is it possible to download the xml with no dll ?

WebRequest for indicators.

DIY multi-threaded asynchronous MQL5 WebRequest
DIY multi-threaded asynchronous MQL5 WebRequest
  • www.mql5.com
The article describes the library allowing you to increase the efficiency of working with HTTP requests in MQL5. Execution of WebRequest in non-blocking mode is implemented in additional threads that use auxiliary charts and Expert Advisors, exchanging custom events and reading shared resources. The source codes are applied as well.
 

thank you, but it's too complicated.

Is it possible to download the xml in a few line of code without dll ?

or to fix the error in the indicator