Advertisement
Guest User

Surface Input Exception

a guest
Apr 24th, 2013
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.76 KB | None | 0 0
  1.    System.TypeInitializationException was unhandled
  2.    HResult=-2146233036
  3.    Message=The type initializer for 'Microsoft.Surface.Presentation.Input.InteractiveSurface' threw an exception.
  4.    Source=Microsoft.Surface.Presentation
  5.    TypeName=Microsoft.Surface.Presentation.Input.InteractiveSurface
  6.    StackTrace:
  7.        at Microsoft.Surface.Presentation.Controls.ScatterCanvas.GetItemOrientation(ScatterContentControlBase item)
  8.        at Microsoft.Surface.Presentation.Controls.ScatterCanvas.SetItemTransform(ScatterContentControlBase item, Size parentSize)
  9.        at Microsoft.Surface.Presentation.Controls.ScatterCanvas.SetItemTransformIfNeeded(ScatterContentControlBase item, Size parentSize)
  10.        at Microsoft.Surface.Presentation.Controls.ScatterCanvas.<>c__DisplayClass3.<ArrangeOverride>b__1(ScatterContentControlBase svi)
  11.        at Microsoft.Surface.Presentation.Controls.Primitives.CanvasHelper.ArrangeOverride[TItem](UIElementCollection canvasInternalChildren, Size arrangeSize, Func`2 extractItemFromChild, Action`1 positionItem)
  12.        at Microsoft.Surface.Presentation.Controls.ScatterCanvas.ArrangeOverride(Size arrangeSize)
  13.        at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
  14.        at System.Windows.UIElement.Arrange(Rect finalRect)
  15.        at System.Windows.ContextLayoutManager.UpdateLayout()
  16.        at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
  17.        at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
  18.        at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
  19.        at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
  20.        at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  21.        at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
  22.        at System.Windows.Threading.DispatcherOperation.InvokeImpl()
  23.        at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  24.        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  25.        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  26.        at System.Windows.Threading.DispatcherOperation.Invoke()
  27.        at System.Windows.Threading.Dispatcher.ProcessQueue()
  28.        at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
  29.        at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
  30.        at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
  31.        at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  32.        at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
  33.        at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
  34.        at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  35.        at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
  36.        at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
  37.        at System.Windows.Application.RunInternal(Window window)
  38.        at System.Windows.Application.Run()
  39.        at iShowRoom.App.Main() in c:\git\ishowroom2\src\iShowRoom\obj\Debug\App.g.cs:line 0
  40.     InnerException: System.TypeInitializationException
  41.        HResult=-2146233036
  42.        Message=The type initializer for 'Microsoft.Surface.Core.InteractiveSurface' threw an exception.
  43.        Source=Microsoft.Surface.Presentation
  44.        TypeName=Microsoft.Surface.Core.InteractiveSurface
  45.        StackTrace:
  46.             at Microsoft.Surface.Presentation.Input.InteractiveSurface..cctor()
  47.        InnerException: System.OverflowException
  48.             HResult=-2146233066
  49.             Message=Arithmetic operation resulted in an overflow.
  50.             Source=Microsoft.Surface.Core
  51.             StackTrace:
  52.                  at Microsoft.Surface.Core.RawInput.HidInput.RawImageDevice.FindFirstInterface(Guid interfaceGuid)
  53.                  at Microsoft.Surface.Core.RawInput.HidInput.RawImageDevice.get_Instance()
  54.                  at Microsoft.Surface.Core.RawInput.HidInput.HidInputProvider..ctor()
  55.                  at Microsoft.Surface.Core.ContextMap.EnsureInputProvider()
  56.                  at Microsoft.Surface.Core.InteractiveSurface..cctor()
  57.             InnerException:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement