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
There is no problem because one EA keeps writing to the file and the other EA keeps reading from the file and it doesn't matter in what order it happens. To check data relevance I used local time, i.e. quotes are written every 100 milliseconds and then they are checked for relevance by local time.
For information, if you click on terminal.exe 4 times, two copies of the same terminal will open, and the paths must be the same.
Is it possible to reserve memory space with the right to access it for 2 applications?
It's kind of a clear conflict too, with provoking errors of this kind:
0009 0x0009 Invalid memory management address
0998 0x03E6 Invalid memory address access attempt
One of the applications will try to access a memory address to which it does not have access rights
Is it possible to reserve memory space with the right to access it for 2 applications?
It's kind of a clear conflict too, with provoking errors of this kind:
0009 0x0009 Invalid memory management address
0998 0x03E6 Invalid memory address access attempt
One of the applications will try to access a memory address to which it does not have access rights
Maybe you can't, I don't know for sure. Here, in this thread https://forum.mql4.com/ru/3393 they wrote about GlobalAddAtom. If I've understood correctly, it will be possible to pass the variable without the file, i.e. through memory. But I don't know how to do it(((
You also gave an example, can you tell me how you tried to do it?
Oh, a thought popped into my head again - the Windows clipboard is read-write accessible by applications without any memory address restrictions!
Буфер обмена (clipboard)- набор функций и сообщений, который делает возможным передачу данных в прикладные программы, разработанные при помощи Microsoft ® Win32 ® прикладного программного интерфейса (API). Поскольку все прикладные программы имеют доступ к буферу обмена, данные могут быть легко перемещаемы между приложениями или внутри прикладной программы.
But here's another small stick in the wheel:
The clipboard is user-controlled. The window must only transfer data to or from the clipboard in response to a command from the user. The window must not use the clipboard to transfer data without notifying the user.
So, only the API :^(
Oh, a thought popped into my head again. The Windows clipboard is read-write accessible by applications without any memory address restrictions!
Aclipboard is a set of functions and messages that makes it possible to transfer data to application programs designed using the Microsoft® Win32® application programming interface( API). Because all application programs have access to the clipboard, data can easily be moved around between applications or within an application program.
But here's another small stick in the wheel:
The clipboard is user-driven. The window should only transfer data to or from the clipboard in response to a command from the user. The window should not use the clipboard to transfer data without notifying the user.
So, only the API :^(
Either learn the Win 32 API yourself, or look for a coder who will take the job. There is not much choice here.
But in my opinion, this system is not worth the cost.
Just for the record, if you click on terminal.exe 4 times, two copies of the same terminal will open, and the paths should be the same.