Hello, i'm trying to change the image displayed in a RasterImageViewer contrrol selecting from a RasterImagelist with VB6 and .NET interoperability V16. The problem when i select a different image for the second time, the RasterImageViewer content change but, i get an exception. Attached a little sampe and below text of exception:
System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
in Leadtools.RasterImage.GetImageWidthDpi(Boolean useDpi)
in Leadtools.WinForms.RasterImageList.a(Graphics A_0, RasterImageListItem A_1, Rectangle A_2)
in Leadtools.WinForms.RasterImageList.b(Graphics A_0, RasterImageListItem A_1, Rectangle A_2)
in Leadtools.WinForms.RasterImageList.e(Graphics A_0, RasterImageListItem A_1, Rectangle A_2)
in Leadtools.WinForms.RasterImageList.OnPaint(PaintEventArgs e)
in System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
in System.Windows.Forms.Control.WmPaint(Message& m)
in System.Windows.Forms.Control.WndProc(Message& m)
in Leadtools.WinForms.RasterImageList.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Thanks