ThinkGeo.com    |     Documentation    |     Premium Support

V12.1 - System.MissingMethodException - GetSnappedZoomLevelIndex

ThinkGeo Team,

After an upgrade to ThinkGeo.Core V13.0.0-beta160 I was zooming around faster than normal and received the below exception. Not sure if it is related or just a coincidence. I had not seen this previously and have not been able to repeat this.

In my application I only use MapView.GetSnappedZoomLevelIndex, I do not use ThinkGeo.Core.MapUtil.GetSnappedZoomLevelIndex.

Update – This exception occurs when the mouse-wheel is used to ZoomIn/ZoomOut.

Dennis

System.MissingMethodException
HResult=0x80131513
Message=Method not found: ‘Int32 ThinkGeo.Core.MapUtil.GetSnappedZoomLevelIndex(Double, System.Collections.Generic.IEnumerable`1, Double, Double)’.
Source=ThinkGeo.UI.Wpf
StackTrace:
at ThinkGeo.Core.MapArguments.GetSnappedZoomLevelIndex(Double scale)
at ThinkGeo.Core.ExtentInteractiveOverlay.MouseWheelCore(InteractionArguments interactionArguments)
at ThinkGeo.Core.InteractiveOverlay.MouseWheel(InteractionArguments interactionArguments)
at ThinkGeo.Core.MapViewBase.QUQ=(InteractionArguments interactionArguments)
at ThinkGeo.Core.MapViewBase.QEQ=(Object sender, MouseWheelEventArgs e)
at NxQ=.nUQ=.BUU=(Object sender, MouseWheelEventArgs e)
at System.Windows.Input.MouseWheelEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(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, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at OriStarCoreReferenceCore.App.Main()

Thanks Dennis,
I did some test with our howdoi sample. still can not re-produce this one. Could you build a small project for us to re-produce this one.

Thanks

Frank

hi Frank,

When I upgraded ThinkGeo.Core yesterday I did not upgrade ThinkGeo.UI.Wpf.

I just upgraded ThinkGeo.UI.Wpf to V13.0.0-beta179.

The MissingMethodException is no longer encountered. Zoom by MouseWheel now works fine.

I’ll be sure to always upgrade these two packages together.

Dennis

Thanks Dennis,
Good to know it works. Go ahead let us know if you have any more questions.

Thanks

Frank