c# 解决窗体关闭时出现“访问已释放句柄“的异常
while (!this.button_search.IsHandleCreated)//主窗口的日志
{
//解决窗体关闭时出现“访问已释放句柄“的异常
if (this.button_search.Disposing || this.button_search.IsDisposed)
return;
}
while (!this.button_search.IsHandleCreated)//主窗口的日志{//解决窗体关闭时出现“访问已释放句柄“的异常if (this.button_search.Disposing || this.button_search.IsDisposed)return;}