StrataFrame Forum

ParentBusinessObject property is being reset

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

By Tim Dol - 11/26/2008

I've been trying to track down a problem with one of my programs since upgrading from 1.61 to 1.66.  The program is a basic parent/child form. I have set the ParentBusinessObject property on my child Business object, however when the program runs, the ParentBusinessObject is being reset to Nothing.  The value is fine after  initialize component but is set to nothing by time it hits ParentFormLoading.

Any ideas?

By Trent L. Taylor - 12/1/2008

This should not be coming from anywhere directly within the framework...otherwise there would be a LOT of broken dialogs our there...including ours! Smile

Here is what I would suggest.  Be sure that you have the SF source built in debug mode, then do the following:

  1. Open your project where the issue resides.
  2. Open the BusinessLayer.vb file while your project is open (just click File-> Open File -> BusinessLayer.vb
  3. Go down to around line 1323 (this may be different for you as there has been new code added on our side so the numbering will have changed).
  4. Place a break point on the Set of the ParentBusinessObject property

Then run your code again.  You may want to wait to add the breakpoint until you are ready to execute that one specific thing, but in any case, once you get to the Set, look at the call stack to see what is setting this to Nothing.