#include <Windows.h> #include <iostream> using namespace std; int main(void) { unsigned char* pFoo = new unsigned char[1000];
virtualpointer=(char*) VirtualAlloc (NULL, (unsigned __int64) (1<<31), MEM_RESERVE, PAGE_READWRITE);
As an experiment i am trying to write the following program which allows me to generate code during runtime. i.e. i do the following:
Title says it pretty much all : is there a way to get the lowest free virtual memory address under windows ? I should add that I am interested by this informat开发者_开发技巧ion at the beginning of th
I am routinely seeing VirtualAlloc calls to reserve memory fail. I\'m requesting 2MB so that the allocations do not count against my per process virtual memory and instead use system shared memory. At