Set a static amount of virtual memory, usually 1.5 times that of your total ram. In your case 768MB. I wouldn't recommend Windows having control over how big the swap file is.

Also, try running your system with the cover open and try doing what froze your system before. Could be overheating.