Our C# console application works fine. this application internally runs some C++ dlls. Occasionally, we encounter to C5 Error (unknown C++ error of underlying dlls) or unhadled C# Exceptions which both terminates the application. (I saw it in Windows Event Log).
The problem is not the error but the dump file that is generated in Windows' Temp folder. It fills our disk (virtual disk with very low space), and result in failing other running applications. These are 2 files with ".mdmp" and ".hdmp" extensions. they occupies about 500MB. I read on the internet that these are related to "Windows Error Reporting", but I checked in our Windows setting (server manager-->Local Server) and it is off.
I also changed a build setting for our C# console application called: "Internal compiler error reporting" to "send"; Hopping that it send the dump file to somewhere that it intended to and do not save it for latter, but temp files still are generated on disk. I think I should change it to "none".
please help me if there is a way to stop creating these temp files.
Thank you in advanced
One option is to exclude your exe from error reporting. See "ExcludedApplications" here: https://msdn.microsoft.com/en-us/library/bb513638.aspx.
I don't have enough points to reply inline to the previous answer. So replying here. The settings mentioned in the previous answer is for system crashes, aka Blue screens. Those settings don't affect user-mode application crashes.