Page 1 of 1

Change path where temporary memory dump is saved

Posted: Wed Dec 16, 2009 6:41 pm
by Smjert
Is possible?
Since C:\ is a very tiny disk and the memory profiler has to create a 4gb file.

Posted: Thu Dec 17, 2009 10:09 pm
by Andreas Suurkuusk
The temporary memory dump file is saved in a temporary folder, which is retrieved using the GetTempPath function. According to the documentation:
The GetTempPath function checks for the existence of environment variables in the following order and uses the first path found:

- The path specified by the TMP environment variable.
- The path specified by the TEMP environment variable.
- The path specified by the USERPROFILE environment variable.
- The Windows directory.
So, you should be able to change the path of the temporary memory dump by setting the TMP or TEMP environment variable.