诡异的情况,大小牛帮我解答下
龙火 2013-03-06 09:01:53 上代码
GEWebClientLib.WebOcxClass ocx = new WebOcxClass();
ocx.Initialize(1, 1, 1, 255);
ocx.LoginUAS("IP", 5555, "用户名", "1234", 0, 0, 0, 0);
System.Windows.Forms.MessageBox.Show("1");
ocx.StartMonitor("201716-201716000100000014-0001-0002", -1, 1, 0, 0, 0);
System.Windows.Forms.MessageBox.Show("2");
ocx.StartLocalRecord("201716-201716000100000014-0001-0002", ent_name +s + ".asf", 5);
诡异情况如下:直接运行这段代码,没反应跟似乎这些代码没执行一样。debug下断点必须加在标红的地方,后面的代码才执行。不debug的话,在代码中间加System.Windows.Forms.MessageBox.Show("1");,后面的代码才会执行。
在线等,求高人帮忙解决这个问题