具体异常如下所示:
at Microsoft.AGL.Common.MISC.HandleAr()
at TabPageCollection.get_Count()
at TabPageCollection._GetRgctl()
at TabPageCollection.IndexOf()
at System.Windows.Forms.TabPage._SetParent()
at System.Windows.Forms.Control.set_Parent()
at System.Windows.Forms.TabPage.Dispose()
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.WL.Destroy()
at System.Windows.Forms.Control.Dispose()
描述:我的Form窗口中有一个TabControl控件,TabControl控件有两个Page页,当我关闭Form窗口时会在,Dispose方法中报这个异常(这个异常偶然出现),但我一时半会找不出原因,特来求教。