日期:2014-05-18  浏览次数:21027 次

窗体关闭时报错:“在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke”
调试显示,执行到这一句时:
  DisplayLog dFunc = new DisplayLog(SetTxtLog);
  this.Invoke(dFunc, new object[] { s });
报错:
“在创建窗口句柄之前,不能在控件上调用 Invoke 或 BeginInvoke”

------解决方案--------------------
是否用到多线程了?