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
It's a method from a mapping class.
So what?
The topic of mapping resizing is not covered.
That's what I do.
I.e. when you open a mapping with the same name and a different size, it changes size?
You don't have to answer, it's not in the code anyway. What you do there is little to do with the question :) so good luck.
Of course it does. I have a library on this class that works. The tests are fine. The first variant of this library is in the piggy bank.
The latest version of the library itself changes size depending on need.
So when you open a mapping with the same name and a different size it changes size?
You don't have to answer, that's not what's in the code anyway. What you do there has little to do with the question :) so good luck.
Andrew, I rechecked two ways.
Well, yes. When you call CreateFileMapping with the same name but with a larger size, the memory is expanded.
The main thing is that the first handle of CreateFileMapping should not be closed (just to avoid losing previous contents).
But! In the second case I tested a more interesting hypothesis.
A CreateFileMapping is created with an initial size (e.g. 2 bytes) and 4 bytes are written to it. And it automatically expands itself!
So there is no need to create a second CreateFileMapping handle with a larger size.
I think the question is closed.But! The second case tested the hypothesis more interestingly.
CreateFileMapping is created with an initial size (e.g. 2 bytes) and 4 bytes are written to it. And it automatically expands itself!
So there is no need to create a second CreateFileMapping handle with larger size.
I think the question is closed.It's in the description.
In the description of what? That's what I need to get my memory up.
In the description of what? I need it to be freed.
MSDN :-))
I mean, if memory consumption increases, you have to release it.