Change path where temporary memory dump is saved

Use this forum for questions on how to use .NET Memory Profiler and how to analyse memory usage.
Post Reply
Smjert
Posts: 1
Joined: Wed Dec 16, 2009 6:38 pm

Change path where temporary memory dump is saved

Post by Smjert » Wed Dec 16, 2009 6:41 pm

Is possible?
Since C:\ is a very tiny disk and the memory profiler has to create a 4gb file.

Andreas Suurkuusk
Posts: 1005
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Thu Dec 17, 2009 10:09 pm

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.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests