c#与halcon混合编程调用时报错#5321的问题如何解决呀?
public bool InitCamera()
{
try
{
this.m_AcqHandle = new HFramegrabber("DirectShow", 1, 1, 0, 0, 0, 0, "default", 8, "default", -1.0, "false", "default", this.m_Name, 0, -1);
this.m_AcqHandle.SetFramegrabberParam("grab_timeout", 0x1388);
this.m_bIsOpen = true;
this.SetCamParams();
this.SetTriggerMode();
this.SetFrameRate();
this.SetExposureTime();
this.SetGain();
return true;
}
catch (Exception exception)
{
//Log.WriteLog("InitCamera Error:" + exception.Message, 0);
this.m_bIsOpen = false;
return false;
}
}