简体   繁体   English

WPF应用程序在Windows 10中具有WndProc异常; 在Windows 8、8.1中看不到

[英]WPF Application has WndProc Exception in Windows 10; Not seen in Windows 8, 8.1

It is my hope that there are developers out there who have undertaken to start work in Windows 10. I have not immersed myself to the point where I am coding strictly in Windows 10. Hopefully there are those of you out there who have seen similar behavior as explained below. 我希望那里的开发人员已经开始在Windows 10中工作。我没有沉迷于严格按照Windows 10进行编码的地步。希望那里的人也看到了类似的行为。如下所述。

This application is a proprietary design; 该应用程序是专有设计。 I won't be able to give too many details of a finer nature. 我将无法提供更多细节的细节。 I can tell you that it deals with getting the location of UI Automation Elements within any window on a screen. 我可以告诉您,它涉及获取UI自动化元素在屏幕上任何窗口内的位置。

This WPF application works very well in Windows 8 and 8.1. 该WPF应用程序在Windows 8和8.1中运行良好。 It works well in Windows 10, too. 它在Windows 10中也很好用。 But I am getting the exception below when I attempt to use the application in the "Metro Outlook Mail" app. 但是,当我尝试在“ Metro Outlook Mail”应用程序中使用该应用程序时,出现以下异常。 In general, WndProc in this class is dealing with the detection of pen events and finger events. 通常,此类中的WndProc用于处理笔事件和手指事件。

Here is the exception detail: 这是异常详细信息:

WndProc Exception: 
The pipe is being closed. 
Failed to get raw data from the pointer device. 
at WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

Please let me know if any of you have seen this when testing your pre-Windows 10 app on a Windows 10 system. 在Windows 10系统上测试Windows 10之前的应用程序时,是否有任何人看到此消息,请告知我。

Thanks 谢谢

It would seem that the version of Windows 10 I was testing was too green. 我正在测试的Windows 10版本似乎太绿色了。 In testing the next release, this error went away. 在测试下一个版本时,此错误消失了。

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

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