I had the "out of memory" problem a couple of weeks ago on a win 7 machine with 16gb ram. Ultimately uninstalled my Softperfect ram disk, let the system manage the page file size, and ran sfc/scannow which found problems with some system files. Reset the pagefile size to 3gb after that, no further issues.