日期:2014-05-17 浏览次数:20772 次
if (this != null && !this.IsDisposed && this.IsHandleCreated) { this.Invoke(new EventHandler(delegate //MJ:用BeginInvoke反而会引起阻塞,关闭程序的时候"无法访问已释放的对象" { if (!txtMagneticField.IsDisposed) ... } }