2015-04-06 111 views
-2

,我发现了以下异常:堆栈跟踪处System.Windows.Forms.Control.CreateHandle()

at System.Windows.Forms.Control.CreateHandle() 
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 
    at System.Windows.Forms.Control.CreateControl() 
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value) 
    at System.Windows.Forms.Control.Show() 
    at IMI.Module.ControlLibrary.Forms.MDIParent.ShowForm(Form form) in 

任何想法,为什么这可能发生?它本地运行良好,但不在Citrix上运行。

+0

现在它说的例外是:“无法访问处置的对象。” – Dan

+0

你可以发布*抛出异常的代码吗?除了例外,很难帮助你。 –

+0

查看[System.ObjectDisposedException from simple form display](http://stackoverflow.com/q/1430699/1364007)。 –

回答

-1

这是由于没有被添加到表单并被丢弃的按钮。我使按钮不可见,而它的工作。这不是思杰的问题。