Windows 8 上的 Surface 运行时异常 [英] Surface Runtime Exception on Windows 8

查看:22
本文介绍了Windows 8 上的 Surface 运行时异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在几个月前开发的软件遇到了一个奇怪的问题,今天我们不得不重新打开该应用程序,以便客户进行一些改进.但是一个奇怪的异常开始出现.它似乎来自 ScatterView.但奇怪的是,该应用程序正在生产并且代码相同,这可能是什么原因?这里是例外.

We are experiencing a strange problem with a software we already developed few month ago, today we had to reopen the app for the customer to make some improvement. But a strange exception start to show up. it seem that is coming from the ScatterView. But the strange thing the app is working on production and the code is the same what could be the cause? Here the exception.

System.TypeInitializationException was unhandled
HResult=-2146233036
Message=The type initializer for 'Microsoft.Surface.Presentation.Input.InteractiveSurface'  threw an exception.
Source=Microsoft.Surface.Presentation
TypeName=Microsoft.Surface.Presentation.Input.InteractiveSurface

在这里您可以找到完整的堆栈跟踪 http://pastebin.com/y3vVurfm

Here you can find the full stack trace http://pastebin.com/y3vVurfm

谢谢我忘了说该应用程序是在 .net 4.5 上开发的

推荐答案

您面临的运行时异常可能是因为您正在为 Any CPU 编译并且现在使用的是 x64 操作系统.您可以通过仅针对 x86 重新编译来克服此问题.

The runtime exception you are facing might be the result that you are compiling for Any CPU and are now using an x64 operating system. You can overcome this by recompiling for x86 only.

请注意:在 Windows 8 上,运行针对 Microsoft Pixelsense/Samsung SUR40 的应用程序还有一些其他限制(未报告触摸事件).Pixelsense SDK 是在 Microsoft Windows 8 尚未发布时创建的,因此不要指望它会得到支持.

Please note: on Windows 8 there are some other restrictions in regard to have an application running that targets Microsoft Pixelsense / Samsung SUR40 (touch events not being reported). The Pixelsense SDK was created when Microsoft Windows 8 wasn't released yet, so don'T expect this being supported.

如果您想同时支持这两个平台,请参阅 https://blogs.sevensteps.com/Lists/Posts/Post.aspx?ID=10 了解如何实现这一目标.

If you want to have support for both platforms see https://blogs.sevensteps.com/Lists/Posts/Post.aspx?ID=10 for an idea on how to achieve this.

这篇关于Windows 8 上的 Surface 运行时异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆