You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
At least you don't try to read a file in memory after restarting the computer...
So I understand that I cannot transfer data through memory between two terminals in this way?
And what is the correct way? I need to implement the transfer of a text string from one terminal to another using MemMapLib.mqh.
So I understand that I can't transfer data through memory between two terminals in this way?
you can
You need to implement the transfer of a line of text from one terminal to another using MemMapLib.mqh.
create a file, write it, then read it.
roughly in this order
https://www.mql5.com/en/code/10571
What is the maximum amount of data I can write to an open file in memory and then read?
After 4096 the Expert Advisor starts crashing at this point.
Hi, in the code above "return(0)" should be corrected into "return(m_hmem)", otherwise it wont return the handle of memory mapped file.
I tried to write a 200 characters long string to a file, I got an error of exceeding the array size in line 214 of the library. It turns out that the header size is not taken into account when determining the size of the receiving array.
It's working.
doesn't work.
Give me the code and the spindle
It's not working.
Give me the code and the printout
I've figured out the dimensions. But I tried to read the file with another object and got silence on the output. Where is the error?
I figured out the dimensions. But I tried to read the file with another object and got silence on the output. Where is the error?
//--- Close the recordIt's not called closing a record, it's called closing and deleting a file.
That's why
//--- Open the file for readingyou're trying to open something that doesn't exist.it's not called closing the record, it's called closing and deleting the file.
which is why
you're trying to open something that doesn't exist.Okay, that makes sense. I was following the analogy of working with regular files, when closing leads exactly to closing and releasing, not deleting the file.