StrataFrame Forum

RefreshBoundControls error

http://forum.strataframe.net/Topic26834.aspx

By dgsoft - 4/14/2010

Hi,

I have an error in my application when I try to close form

The error appears on line MyBase.dispose.



Any help.



Here is a stack information

bei MicroFour.StrataFrame.Business.BusinessLayer.RefreshBoundControls()

bei MicroFour.StrataFrame.Business.BusinessLayer.Refresh()

bei MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.UnTranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl ParentContainer, ContainerControl ChildContainer)

bei MicroFour.StrataFrame.UI.Windows.Forms.UserControl.Dispose(Boolean disposing)

bei MKS.GoliathNet.Windows.Controls.MKSBaseServiceContainer.Dispose(Boolean disposing) in Y:\Projekte.Net\ApplicationBasis\MKS.GoliathNet.Kernel\MKSBaseControls\Containers\MKSBaseServiceContainer.Designer.vb:Zeile 12.

bei MKS.GoliathNet.Services.MKSKontakteServiceControl.Dispose(Boolean disposing) in Y:\Projekte.Net\Modules\ApplicationModules\MKSKontakte\MKSKontakte\MKSKontakteServiceControl.Designer.vb:Zeile 13.

bei System.ComponentModel.Component.Dispose()

bei System.Windows.Forms.Control.Dispose(Boolean disposing)

bei DevExpress.XtraEditors.XtraScrollableControl.Dispose(Boolean disposing)

bei DevExpress.XtraTab.XtraTabPage.Dispose(Boolean disposing)

bei System.ComponentModel.Component.Dispose()

bei System.Windows.Forms.Control.Dispose(Boolean disposing)
By Dustin Taylor - 4/14/2010

I unfortunately can't give much direction with just that one stack trace. Do you have a ChildFormDialog object on your form? If so, could you try taking that off and seeing if the problem goes away? The only thing I can see there is some calls dealing with BO transalations, but I don't know if that is due to a child dialog or just normal business layer unwinding processes on a dispose.

If this isn't due to a child dialog, could you try duplicating this on a small sample app that we can load up and trace through?

By dgsoft - 4/28/2010

Hi,

I wrote in Dispose code to remove translations.. and it works now.



Denis