着急啊!大牛们!winform VCap2860sdk的摄像头录像问题
VCap2860sdk中的devwdm.dll已经正确导入
//导入DLL文件
[DllImport("devwdm.dll")]
public static extern int devwdm_InitCard(int nID, IntPtr hwnd, int nWidth, int nHeight);
[DllImport("devwdm.dll")]
public static extern int devwdm_CloseCard(int nID);
[DllImport("devwdm.dll")]
public static extern int devwdm_StartCaptureMp4(int nID, string strFileName, int fbAudio);
[DllImport("devwdm.dll")]
public static extern int devwdm_stopCaptureMp4(int nID);
我现在有两个窗体form1,form2,form1中实现了拍照、录像,form1上有个按钮button,点击button,转向form2。form2也进行拍照、录像,拍照没问题,但是录像(函数:devwdm_StartCaptureMp4)去提示尝试读取或写入受保护的内存。这通常指示其他内存一损坏?,只要不录像就不会出现错误,调试很久了,一直都没有解决,各位大神,帮帮忙啊!