ParentBusinessObject just gone
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ParentBusinessObject just goneExpand / Collapse
Author
Message
Posted 08/23/2007 12:56:46 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:13:48 AM
Posts: 384, Visits: 1,391
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
Post #11033
Posted 08/23/2007 1:41:41 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:13:48 AM
Posts: 384, Visits: 1,391
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
Post #11036
Posted 08/24/2007 9:29:31 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 06/17/2008 9:28:35 AM
Posts: 2,649, Visits: 1,863
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.


www.bungie.net
Post #11052
Posted 08/24/2007 9:36:17 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:13:48 AM
Posts: 384, Visits: 1,391
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
Post #11056
Posted 08/27/2007 10:02:15 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:13:48 AM
Posts: 384, Visits: 1,391
Hi,
Just want to know if you could download the sample zip file?
Post #11103
Posted 09/06/2007 6:31:52 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:13:48 AM
Posts: 384, Visits: 1,391
Hi,
Did you overlook this issue?
Or, any workaround? Anybody else face this problem? No? Only me? strange
Post #11358
Posted 09/06/2007 9:09:58 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 06/17/2008 9:28:35 AM
Posts: 2,649, Visits: 1,863
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.


www.bungie.net
Post #11366
Posted 01/12/2008 8:11:00 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:13:48 AM
Posts: 384, Visits: 1,391
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
Post #13399
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse