Are you sure that you are not confusing physical and virtual memory? Physical memory is managed by the Windows OS, not by a program like Gamestudio.

When you want to know how much memory your game needs, look at the virtual memory and the nexus, you see it in the debug panel.