System.InvalidOperationException at SDKDigitalZoomInfoUserControl dispose / Finalize

I keep running into unhandled exceptions with SDKDigitalZoomInfoUserControl even though i dont use the digitial zoom.

The full error i get is:

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.InvalidOperationException

at System.Windows.Threading.Dispatcher.VerifyAccess()

at MS.Internal.Media.VisualTreeUtils.AsVisual(System.Windows.DependencyObject, System.Windows.Media.Visual ByRef, System.Windows.Media.Media3D.Visual3D ByRef)

at MS.Internal.Media.VisualTreeUtils.AsNonNullVisual(System.Windows.DependencyObject, System.Windows.Media.Visual ByRef, System.Windows.Media.Media3D.Visual3D ByRef)

at System.Windows.Media.VisualTreeHelper.GetParent(System.Windows.DependencyObject)

at System.Windows.UIElement.GetUIParentWithinLayoutIsland()

at System.Windows.ContextLayoutManager+LayoutQueue.Add(System.Windows.UIElement)

at System.Windows.UIElement.InvalidateMeasure()

at System.Windows.Forms.Integration.WinFormsAdapter.OnLayout(System.Windows.Forms.LayoutEventArgs)

at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.LayoutEventArgs)

at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(System.Windows.Forms.Layout.IArrangedElement, System.String)

at System.Windows.Forms.Control+ControlCollection.Remove(System.Windows.Forms.Control)

at System.Windows.Forms.Control.Dispose(Boolean)

at VideoOS.Platform.SDK.SDKDigitalZoomInfoUserControl.Dispose(Boolean)

at VideoOS.Platform.SDK.SDKDigitalZoomInfoUserControl.Finalize()

It may only happen once a day or multiple.

any help appreciated.

This might be a known issue.

However this would only fit if you are using an old MIP SDK, let me recommend as a first step; if you do not already have the newest MIP SDK please use it.

The issue I suspect this to be.. https://developer.milestonesys.com/s/question/0D50O00004zPVuc/why-is-the-imageviewerwpfcontrol-not-disposed

Sorry i should have mentioned i have already followed that post and updated to the latest version

What are you using; ImageViewerControl or ImageViewerWpfControl?

What is the application doing when this is happening – shutting down, deleting an image viewer, changing camera, etc?