[英]Why do I get different threading behaviors in WPF with Windows 7 with and without SP1?
I have this multi-threaded WPF application and two different machines where I am testing it. 我有这个多线程的WPF应用程序和两个要测试它的不同机器。
The first is a Windows 7 Professional, SP1 virtual machine on a VMware client. 第一个是VMware客户端上的Windows 7 Professional SP1虚拟机。 The second is a Win 7 Professional physical machine.
第二个是Win 7 Professional物理计算机。 No SP1.
没有SP1。
On the first machine, the application runs normally, on the second machine the application outputs an AccessViolation exception when calling: 在第一台计算机上,应用程序正常运行,在第二台计算机上,应用程序在调用时输出AccessViolation异常:
App.Current.Dispatcher.Invoke(() => { do stuff });
from a thread created in the following manner: 从以以下方式创建的线程中:
ThreadPool.QueueUserWorkItem( /* callback that calls the dispatcher */ );
Can you tell me why this is having a different behavior if the .Net framework version is the same? 你能告诉我为什么.Net框架版本相同时为什么会有不同的行为? Is it because of the Service Pack?
是因为有Service Pack吗? How can I solve this?
我该如何解决?
显然我在使用HookManager并没有在启动第二个之前关闭一个...为什么在虚拟机中而不是在物理机上工作超出了我的范围...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.