KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am executing a Process in .NET app. Process process = new Process(); .... process.StartInfo.UseShellExecute = false; process.StartInfo.ErrorDialog = false; process.StartInfo.CreateNoWindow = true; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; .... process.Start(); The problem is that the executable sometimes crashes, which is OK, but the AppCrash dialg pops up and prevents the app to continue the execution until I click on close. I know that I can set HKLM\Software\Microsoft\Windows\Windows Error Reporting\ value Disabled to true - msdn.microsoft.com/en-us/library/bb513638%28v=vs.85%29.aspx But is there a way that I can do this in code? EDIT: kmp has posted a great answer, but I am still looking how to achieve the same with native application.
Tags (comma-separated)
Save Edits
Cancel