Wpf .NET3.5SP1中未处理的异常处理程序
我正在将自己的web浏览器使用WPF从Windows XP转换为Windows 7。 当我在WindowsXP上测试时,它没有错误和异常。 但我用多点触摸库在Windows7上进行转换和测试,我的浏览器出现未经处理的异常Wpf .NET3.5SP1中未处理的异常处理程序,wpf,exception,Wpf,Exception,我正在将自己的web浏览器使用WPF从Windows XP转换为Windows 7。 当我在WindowsXP上测试时,它没有错误和异常。 但我用多点触摸库在Windows7上进行转换和测试,我的浏览器出现未经处理的异常 Source: PresentationCore Message: An unspecified error occurred on the render thread. StackTrace: at System.Windows.Media.MediaContext.*
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应用程序在.NET3.0/3.5或4.0中运行良好。但是,由于未处理多个手写笔输入,使用多触摸屏会导致崩溃: System.ArgumentException未处理 Message=“StylusPointDescription不能包含重复的StylusPointPropertyInfos。\r\n参数名称:StylusPointPropertyInfos” Source=“PresentationCore” ParamName=“stylusPointPropertyInfos” 事实证明,这是.net 3.0/3.5中的一个调试,它(理论上)是通过MS的此修补程序解决的: 然而,这对我来说根本不起作用
目前,我找到的解决此多点触控崩溃的唯一方法是升级到VS2010并使用.NET 4.0。(因为这个bug在WPF4中被修复了,并被移植到了3.5,我相信)我自己也遇到了类似的问题,所以我想我也应该在这里为其他人记录它 我的WPF应用程序在.NET3.0/3.5或4.0中运行良好。但是,由于未处理多个手写笔输入,使用多触摸屏会导致崩溃: System.ArgumentException未处理 Message=“StylusPointDescription不能包含重复的StylusPointPropertyInfos。\r\n参数名称:StylusPointPropertyInfos” Source=“PresentationCore” ParamName=“stylusPointPropertyInfos” 事实证明,这是.net 3.0/3.5中的一个调试,它(理论上)是通过MS的此修补程序解决的: 然而,这对我来说根本不起作用 目前,我找到的解决此多点触控崩溃的唯一方法是升级到VS2010并使用.NET 4.0。(因为这个bug在WPF4中被修复了,我相信它被移植到了3.5中)