简体   繁体   中英

Microsoft Real time protection crashes calling program with .NET Process.Start

I have a software integration program that will launch other applications. A recent Windows 10 update has resulted in the calling application locking up even though the other applications launch. In my code, it is a simple statement. I will use Notepad.exe as an example

 Process.Start(notepad.exe)

Nothing more than that. Any suggestions? I do know that there are settings in group policy editor that can turn this off. However, having to do this with many customers is not an option. Any suggestions? Tom

This answer suggests disabling UseShellExecute . Try this

Process p = new Process() {
    StartInfo = new ProcessStartInfo("notepad.exe") {UseShellExecute = false}};
p.Start();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM