HalconDotNet.HOperatorException
HResult=0x80131600
Message=HALCON error #5123: Wrong window type in operator disp_text
Source=halcondotnet
StackTrace:
at HalconDotNet.HOperatorException.throwOperator(Int32 err, Int32 procIndex)
at HalconDotNet.HalconAPI.PostCall(IntPtr proc, Int32 procResult)
at HalconDotNet.HOperatorSet.DispText(HTuple windowHandle, HTuple stringVal, HTuple coordSystem, HTuple row, HTuple column, HTuple color, HTuple genParamName, HTuple genParamValue)
at DeepLearning_MNIST.Form1.Form1_Load(Object sender, EventArgs e) in D:\wanshanw\mytools\Halcon\DeepLT\DeepLearning_MNIST_Halcon-master\DeepLearning_MNIST\Form1.cs:line 33
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
编译没有问题,运行时33行报错,不知道啥原因 |