【问题标题】:unhandled exception Handler in .Net 3.5 SP1.Net 3.5 SP1 中未处理的异常处理程序
【发布时间】:2009-10-06 12:13:08
【问题描述】:

我正在将我自己的 Web 浏览器使用 WPF 从 Windows XP 转换为 Windows 7。 当我在 Windows XP 上测试时,它没有错误和异常。 但是我在 Windows 7 上使用 Multi-touch Library 进行转换和测试,我的浏览器发生了未处理的异常。

Source: PresentationCore
Message: An unspecified error occurred on the render thread.
StackTrace:
   at System.Windows.Media.MediaContext.**NotifyPartitionIsZombie**(Int32 failureCode)
   at System.Windows.Media.MediaContext.NotifyChannelMessage()
   at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
InnerException: null

我想知道错误发生在哪里。该跟踪消息对我来说是垃圾信息。 我已经通过谷歌搜索知道该消息,但我从未找到任何信息。 如何在发生错误的地方获得确切的功能?请告诉我一些事情。

【问题讨论】:

    标签: wpf exception


    【解决方案1】:

    我自己也遇到过类似的问题,所以我想我也应该在这里为其他人记录一下。

    我的 WPF 应用程序在 .net 3.0 / 3.5 或 4.0 中运行良好。但是,使用多点触控屏幕会由于未处理多个触控笔输入而导致崩溃:

    System.ArgumentException 未处理 Message="StylusPointDescription 不能包含重复的 StylusPointPropertyInfos。\r\n参数名称: stylusPointPropertyInfos" 来源="PresentationCore" ParamName="stylusPointPropertyInfos"

    事实证明,这是 .net 3.0 / 3.5 中的调试,(理论上)通过 MS 的此修补程序解决: http://thehotfixshare.net/board/index.php?showtopic=14251

    然而,这实际上对我没有用。

    目前,我发现解决此多点触控崩溃的唯一方法是升级到 VS2010 并使用 .NET 4.0。 (因为这个错误已在 WPF 4 中修复,并且我相信向后移植到 3.5)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-29
      • 2021-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多