StrataFrame Forum

Help : NullReference Exception in dispose

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

By Ruchika Garg - 4/26/2010

Stack Trace

  at MicroFour.StrataFrame.Business.BusinessLayer.RefreshBoundControls()
   at MicroFour.StrataFrame.Business.BusinessLayer.Refresh()
   at MicroFour.StrataFrame.UI.Windows.Forms.BusinessObjectTranslator.UnTranslateBusinessObjects(BusinessObjectTranslationCollection Translations, ContainerControl ParentContainer, ContainerControl ChildContainer)
   at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.Dispose(Boolean disposing)
   at FundamentalsCalculator2.UserControls.ProductFilters.Dispose(Boolean disposing) in C:\Project\FundamentalsCalculatorApplication\FundamentalsCalculator2\FundamentalsCalculator2\UserControls\ProductFilters.designer.cs:line 20
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at MicroFour.StrataFrame.UI.Windows.Forms.ThemedPanel.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
   at MicroFour.StrataFrame.UI.Windows.Forms.UserControl.Dispose(Boolean disposing)
   at MicroFour.StrataFrame.UI.Windows.Forms.PanelManager.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
   at MicroFour.StrataFrame.UI.Windows.Forms.ThemedSplitContainer.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
   at System.Windows.Forms.Form.Dispose(Boolean disposing)
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Dispose(Boolean disposing)
   at MicroFour.StrataFrame.UI.Windows.Forms.StandardForm.Dispose(Boolean disposing)
   at FundamentalsCalculator2.Form1.Dispose(Boolean disposing) in C:\Project\FundamentalsCalculatorApplication\FundamentalsCalculator2\FundamentalsCalculator2\Form1.Designer.cs:line 20
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Form.WmClose(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

By Ruchika Garg - 4/26/2010

Error description:

I am getting this exception when i hit the form close. And the error happens in a user control dispose method.The user control has bo translation on it and if i remove the bo transaltions i do not get this error.

Any ideas..

Thanks.

By Dustin Taylor - 4/27/2010

Can you reproduce this in a sample and attatch it to a post? The only thing I could see as being an issue here is if either the bo translation isn't set up properly (i.e. not pointing to a valid BO), or the control itself isn't bound properly.  Past that, we'll need to trace through it and see where it is coming from.
By Trent L. Taylor - 4/27/2010

Ruchika,



What version of StrataFrame are you using? Have you downloaded the most recent updates? This could play a factor as well.
By Ruchika Garg - 4/27/2010

I am using the 1.7.0.6 version.
By Trent L. Taylor - 4/27/2010

Would it be possible for you to load the 1.7.0.7? Depending on what is going on in your code, this issue may already be resolved.
By Ruchika Garg - 5/3/2010

I will install the next version and will let you know how it goes.

Thank you.