注意:  this.DateTimeRun = true;
            new Thread(jishi_kernel).Start();

线程的启动,不能放在    public Form1()  构造函数中,因为窗口的控件还没有初始化完成。若线程调用窗口控件,就会报错。

 

 

 

应该放在这个函数里面  private void Form1_Load(object sender, EventArgs e)

posted on 2015-01-04 13:53  qqhfeng16  阅读(726)  评论(0编辑  收藏  举报