I am trying to use a windows port of a linux memory debugger called electric fence. In the documentation, which was only written for the linux version, it says the following:
Since Electric Fence uses at least two virtual memory pages for each of its allocations, it's a terrible memory hog. I've sometimes found it necessary to add a swap file using swapon() so that the system would have enough virtual memory to debug my program.
What would be the equivalent of swapon in windows? I keep getting an error saying windows couldn't allocate enough virtual memory when I try to run this debugging library with my program.
The exact error message is:
VirtualAlloc(8192) failed: NULL
Since Electric Fence uses at least two virtual memory pages for each of its allocations, it's a terrible memory hog. I've sometimes found it necessary to add a swap file using swapon() so that the system would have enough virtual memory to debug my program.
What would be the equivalent of swapon in windows? I keep getting an error saying windows couldn't allocate enough virtual memory when I try to run this debugging library with my program.
The exact error message is:
VirtualAlloc(8192) failed: NULL