Can you provide a small program that still creates this issue? I would assume this might be due to incorrect includes or something...
By the way, fstream and string do not contain an .h suffix as they are C++ headers. You should also use c<name> instead of <name>.h for the C headers so that they will be properly wrapped inside the C++ namespace.
But, as was stated before, this isn't fixing the problem. Do you have a memory leak in your program? Are you allocating memory on the heap and not freeing it? Try rebooting your PC to start with.
Wow, It's awful!!! I set /Zm 200 first but this parameter definition is invalid. So tried the /Zm200 and it's Okay. But the compiler needs /Zm500 (500 Mb) to compile and link the program properly. Why "my program needs so much "heap" memory"?
And, thanks ajh32 so much so much!! In my opinion you're really intelligent!!