Weird System.Runtime.InteropServices.COMException

0

Visual Studio 2017 Community, VB.NET, Windows7

This is what I get:

System.Runtime.InteropServices.COMException: '[FireDAC][DatS]-32. Variable length column [Version] overflow. Value length - [71], column maximum length - [10]'

Details:

System.Runtime.InteropServices.COMException occurred
  HResult=0x80020009
  Message=[FireDAC][DatS]-32. Variable length column [Version] overflow. Value length - [71], column maximum length - [10]
  Source=AllSkyPlateSolver.PlateSolver
  StackTrace:
at AllSkyPlateSolver.IPlateSolver.PlateSolve(String FileName, Int32 FocalLength, Double PixelSize, Double CurrentRA, Double CurrentDec, Double NearRadius)
at WindowsApp1.ASCOM_Test3.Solve(String sPAR) in C:\Programming\VB\PatsAstroUtility\WindowsApp1\ASCOM_Test3.vb:line 233
at WindowsApp1.ASCOM_Test3.btnSolve_Click(Object sender, EventArgs e) in C:\Programming\VB\PatsAstroUtility\WindowsApp1\ASCOM_Test3.vb:line 208
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at WindowsApp1.My.MyApplication.Main(String[] Args) in :line 81

The weird thing: I did a complete re-installation of AllSkyPlateSolver. After that, I was able to call it just one single time and it did do what expected (plate solving of an image). Any time after that, I get this error. Even weirder: After I got the error in Visual Basic, I cannot start the original AllSkyPlateSolver from my desktop anymore without getting the same error. Any advice would be appreciated.

The relevant code:

Private myASPS As AllSkyPlateSolver.PlateSolver
Private FocalLength As Integer = 570
Private PixelSize As Double = 5.4
Private CurrentRA As Double = tRA
Private CurrentDec As Double = tDE
Private NearRadius As Double = 15

Private Sub Solve()
    ImageFile = OpenFileDialog1.FileName
    myASPS = New AllSkyPlateSolver.PlateSolver()
    myASPS.PlateSolve(ImageFile, FocalLength, PixelSize, CurrentRA, CurrentDec, NearRadius)
End Sub
vb.net
asked on Stack Overflow Apr 5, 2017 by Pat

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0