What is where it happems: Access violation read to 0x0ABB5000 in 'C:\Users\cas\Documents\MT4\mt1\MQL4\Experts\myEA.ex4'
Now I have a hint what and where it happened, but I can't reproduce it.
The EA crashed at this line:
ChartSymbol(GlobalVariableGet( MyGlobVar ))
And the MyGlobVar has got a 4 - not an iD of a chart due to a change of my concept..
I played with various type casts and others but now I can't reproduce the error, I now only know where it has happened.
Gooly
i don't understand how do you wanna play it ?
GlobalVariableGet is a double and ChartSymbol requires a long
Well I need to communicate the ChartID between different Charts!
And Globalvariables are the easiest way and I have used that before 500 without any problem.
Finally I did not expect the ChartID to be close to the highest possible long-value (8 bytes) while we only can open not more than 100 (in words one hunderd) charts!
i don't get it you said and i quote "I have used that before 500 without any problem"
really ?
have you used ChartID in B500 >
Well I need to communicate the ChartID between different Charts!
And Globalvariables are the easiest way and I have used that before 500 without any problem.
Finally I did not expect the ChartID to be close to the highest possible long-value (8 bytes) while we only can open not more than 100 (in words one hunderd) charts!
Except there is no ChartID before build 500 (or 509).
Yes, but GlobalVars!!
And datetime was not 8 byte long so they could be saved as doubleYes, but GlobalVars!!
And datetime was not 8 byte long so they could be saved as doubleYou avoid the discussion, you were talking about ChartID.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,my EA stops after
This EA is installed by a script 8 times. 7 time without any problem but the last crashes with the a.m. error (no line??)
It reads it parameters from an csv-file and is uses global variables and I placed my Print("ERROR in ",__LINE__); around all these calls but it happens after that??
Anybody with a hint what to do and when and why this happens?
Thanks Gooly