On Friday, 26 June 2015 at 15:23:25 UTC, Alex Parrill wrote:
On Friday, 26 June 2015 at 14:56:21 UTC, Dmitry Olshansky wrote:
[...]
Yea, VirtualAlloc seems like a better fit. (I don't actually
know the windows API that well)
[...]
Here's the paragraph I'm reading:
Mapped views of a file mapping object maintain internal
references to the object, and a file mapping object does not
close until all references to it are released. Therefore, to
fully close a file mapping object, an application must unmap
all mapped views of the file mapping object by calling
UnmapViewOfFile and close the file mapping object handle by
calling CloseHandle. These functions can be called in any order.
https://github.com/andralex/phobos/pull/17