The .NET Memory Profiler executables return an exit code. This exit code can be useful when doing automated testing in a script. The following return codes are used:
|
Code |
Meaning |
|
0 |
Success. The profiler was run normally. |
|
1 |
Memory leak detected. A memory leak has been detected when profiling. |
|
2 |
Argument error. The arguments supplied contained an invalid argument. |
|
3 |
Unexpected error. The profiler exited because of an unexpected error. |
|
259 |
Returned if the /passthrough command line argument was provided and no return value from the profiled process exists (e.g. if the process was terminated). (The value 259 is defined as STILL_ACTIVE. in the Windows SDK and is used by GetExitCodeProcess to indicate that the exit code is not available) |
|
Any |
If the /passthrough command line arguments was provided, the exit code of the profiled process is returned. |