Application.AddMessageFilter(this);

时间:2023-03-08 15:59:47

开发环境:windows 8(x64), vs2013

只要“项目属性-调试”中选中“启用Visual Studio承载进程“,在VS2013中用F5调试,调用Application.AddMessageFilter(this),就报vshost-clr2.exe已停止工作

把“启用Visual Studio承载进程”取消,就不报错。