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
I guess we have to do some kind of guaranteed test. But I don't know how yet.
Logically speaking, closing a handle causes the memory area to be freed.
But it doesn't mean that closing the handle should clear this area to zero. The handle is closed, the written data remains until it is overwritten by other software. that's how it is.
If you use files for storing intermediate data, you can, of course. The main thing is to reset the data to disc at some reference points, because if something happens, the information will be irretrievably lost.
Logically speaking, closing the handle will free this memory area.
But it doesn't mean that closing the handle should clear this area to zero. Handle closed, the written data remains until they are overwritten by other software. so it goes like this.
The file is closed, the handle is destroyed, we open a file with the same name and read the necessary information, although by idea the distributed area should be lost and opening a destroyed file without creating it should cause an error. I don't know if this is a bug or a feature.
although the distributed area should be lost and opening a destroyed file without creating it should cause an error.
I think it's a bug.
The trick is that there is a file name in memory. And the system detects it.
Folks, I have a request.
I need to find such an API function - from any API, including non-windows ones - that will not allow to use memcpy/strcpy .
i.e. find a case when for some reason the size of the returned pointer will not be known, or the returned string will be not NULL-terminated and without known size.
Please help me to find the limits of this method's application...
MT5 642 Win7 64 does not work, as far as I understand it, after
hmem=CreateFileMapping(INVALID_HANDLE_VALUE,NULL,PAGE_READWRITE,0,size+HEAD_MEM,path); // create memory object
I get error 1400,
but Vista 32 works.
I checked, I got the same error. But =6.
I checked, I got the same error. But =6.
It must be a trick of some kind. At direct launch it gives err=6, but in debug mode err=1400.
How to transfer int or double arrays? I can't do it :(