StrataFrame Forum

ParentBusinessObject just gone

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

By Chan - 8/23/2007

Hi,

I have SalesBO and SaleDetailsBO, which already set its ParentRelationShip and ParentBusinessObject.

I don't know why the ParentBusinesObject property become null suddenly. I can't find any code the set parentbusinessObject property to null in my project.



Any ideas on what could cause this problem?

How could I debug it? Anyway to debug like VFP, break if parentbusinessobject = null nomatter where?



URGENT!



Thank you
By Chan - 8/23/2007

Hi,

For additional info, I used to set breakpoint in ParentBusinessObject Setter method, I didn't see event that set null to this property.



Please advice
By StrataFrame Team - 8/24/2007

If you never reached the breakpoint to the setter, could it be that the code relying on the ParentBusinessObject is being called before it's being set?  Could you post the stack trace for the NullReferenceException that you're getting?  Or if you're not getting a NullReferenceException, let me know more of the symptoms of the problem.
By Chan - 8/24/2007

Hi,

After more debugging, I found a very weird behavour. Inside BO.PropertyFieldChanged event, ParentBusinessObject property is null. However, if I debug from form button_click event, the same BO.ParentBusinessObject property show th correct reference.



I have attached sample project.



1. Try to run it

2. Click on simple button1, nothing happen. It is ok.

3. Click simple button 2, new row shown in xtragrid.

4. Key in any value in gridcolumn2. Click on any other column in order PropertyFieldChanged event fired.

5. Error "null reference " occured.



Please advice. Thank you



I failed to upload attachment here. Please download my sample code using url below.



http://files-upload.com/files/456049/Sample1.zip
By Chan - 8/27/2007

Hi,

Just want to know if you could download the sample zip file?
By Chan - 9/6/2007

Hi,

Did you overlook this issue?

Or, any workaround? Anybody else face this problem? No? Only me? strange Sad
By StrataFrame Team - 9/6/2007

Nope, it's not overlooked, it's on the slate for a resolution in the next couple days.  We're fixing a couple other outstanding issues and will have a complete update pretty soon.  Version won't change... it will be more of a maintenance release.
By Chan - 1/12/2008

Hi,

I haven't download 1.6.5 Beta. Would like to know if this issue has been fixed in 1.6.5 Beta? If not, is it going to be fixed in 1.6.5?



Thank you