2015-04-06 109 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

這是由於沒有被添加到表單並被丟棄的按鈕。我使按鈕不可見,而它的工作。這不是思傑的問題。