I am writing an application which searches for solutions to simple problems and I am testing various algorithms. I would like the system to throw an out of memory exception before paging to disk, and to run my software at various levels of memory availability. Is this possible?
I figured the AppDomain was the best place to look, but I was only able to find total memory allocated since app domain was created. I did find this related question, but I do not care about CPU at all and just want to focus on disallowing paging for my app.