8

我收到一个错误“值不在预期范围内”。堆栈跟踪如下所示。请帮忙...

at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
   at Microsoft.Phone.Controls.Pivot.ReleaseMouseCaptureAtGestureOrigin()
   at Microsoft.Phone.Controls.Pivot.OnManipulationDelta(Object sender, ManipulationDeltaEventArgs args)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
4

1 回答 1

0

可能是您尝试在异步函数中访问主线程对象或 UI 线程对象。因为异步函数的线程具有较低的优先级,因此您无法从这里访问主线程对象..

于 2013-12-04T17:56:41.517 回答