简体   繁体   English

Microsoft 实时保护使用 .NET Process.Start 调用程序崩溃

[英]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.最近的 Windows 10 更新导致调用应用程序锁定,即使其他应用程序启动。 In my code, it is a simple statement.在我的代码中,这是一个简单的语句。 I will use Notepad.exe as an example我将以 Notepad.exe 为例

 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 .这个答案建议禁用UseShellExecute Try this尝试这个

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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