简体   繁体   English

在带有和不带有SP1的Windows 7中,为什么在WPF中得到不同的线程行为?

[英]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.

相关问题 如何在没有 .NET 3.5 SP1 的情况下在 Windows Vista 上安装 .NET 2.0 SP2? - How do I install .NET 2.0 SP2 without .NET 3.5 SP1 on Windows Vista? Windows 2003与.NET 3.5 SP1崩溃 - Windows 2003 crashing with .NET 3.5 SP1 验证是否安装了Visual C ++ 2008 SP1可再发行组件包,而不在Windows注册表中进行搜索? - Verify if Visual C++ 2008 SP1 Redistributable Package is Installed without searching in windows registry? 如何在VS 2008 Sp1的托管Visual C ++项目中选择仅客户端框架? - How do I select the client only framework in a Managed Visual C++ project in VS 2008 Sp1? 如何在Visual Studio Web Developer 2008 SP1中使用ASP.NET MVC RC? - How do I use ASP.NET MVC RC with Visual Studio Web Developer 2008 SP1? 如何使用完全独立的.NET 3.5 sp1安装程序制作WiX安装程序? - How do I make a WiX installer with a completely self-contained .NET 3.5 sp1 installer? .NET 3.5 SP1作为一项要求(或者我应该尝试3.5 w / o SP1)? - .NET 3.5 SP1 as a requirement (or should I try for 3.5 w/o SP1)? .net 3.5 SP1中的System.Windows.Controls在哪里? - Where is System.Windows.Controls in .net 3.5 SP1? 在Windows 7下如何“安装” /“启用” .Net 3.5 SP1? - How to “Install”/“Enable” .Net 3.5 SP1 under Windows 7? 安装.net 3.5 SP1后,丢失DLL错误 - After installing .net 3.5 SP1, get missing DLL error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM