Binding issue(BO's field property called 2 times)


Author
Message
hector
hector
StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)
Group: StrataFrame Users
Posts: 52, Visits: 559
While i studying on StrataFlix application, I have noticed that BO's fields called at least 2 times when win form opening.

Call stack is below.

Is this by design?

How can we prevent this?

I think this can yield performance problems since calcuated BO's fields may do some heavy works.

Any advice?

StrataFlix.Business.dll!StrataFlix.Business.MoviesBO.mv_Title.get()Line 296    C#

                StrataFlix.Business.dll!StrataFlix.Business.MoviesBO.FieldDescriptor.GetValue(objectcomponent) Line 706 + 0x2e bytes         C#

                System.Windows.Forms.dll!System.Windows.Forms.BindToObject.GetValue()+ 0x42 bytes 

                System.Windows.Forms.dll!System.Windows.Forms.Binding.PushData(boolforce) + 0x81 bytes         

                System.Windows.Forms.dll!System.Windows.Forms.Binding.UpdateIsBinding()+ 0x8b bytes

                System.Windows.Forms.dll!System.Windows.Forms.ListManagerBindingsCollection.AddCore(System.Windows.Forms.BindingdataBinding) + 0x37 bytes          

                System.Windows.Forms.dll!System.Windows.Forms.BindingsCollection.Add(System.Windows.Forms.Bindingbinding) + 0x50 bytes   

                System.Windows.Forms.dll!System.Windows.Forms.BindingContext.UpdateBinding(System.Windows.Forms.BindingContextnewBindingContext, System.Windows.Forms.Binding binding) + 0xe4 bytes   

                System.Windows.Forms.dll!System.Windows.Forms.Control.UpdateBindings()+ 0x68 bytes 

                System.Windows.Forms.dll!System.Windows.Forms.Control.OnBindingContextChanged(System.EventArgse) + 0x15d bytes             

                System.Windows.Forms.dll!System.Windows.Forms.Control.OnParentBindingContextChanged(System.EventArgse) + 0x5b bytes

                System.Windows.Forms.dll!System.Windows.Forms.Control.OnBindingContextChanged(System.EventArgse) + 0x130 bytes             

                System.Windows.Forms.dll!System.Windows.Forms.Control.OnParentBindingContextChanged(System.EventArgse) + 0x5b bytes

                System.Windows.Forms.dll!System.Windows.Forms.Control.OnBindingContextChanged(System.EventArgse) + 0x130 bytes             

                System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl()+ 0xad bytes    

                System.Windows.Forms.dll!System.Windows.Forms.Control.SetVisibleCore(boolvalue) + 0x1bc bytes            


Reply
hector
hector
StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)
Group: StrataFrame Users
Posts: 52, Visits: 559

Thanks Trent.

An update :


The BO's field i mentioned was mv_Title.

Only referance to this field in MovieMaintenance form is below line which is not in form loading.

The calling to this event as i mentioned was at when form go to visible.

I hope we can hear your comments soon.

Thanks again

 ...StrataFlixNew\CSharp\StrataFlix\Dialogs\Maintenance\Movie Maintenance\MovieMaintenance.cs(421):      
if (MicroFour.StrataFrame.Messaging.MessageForm.ShowMessageByKey("MovieMaintenance_Delete", Movies.mv_Title) == MicroFour.StrataFrame.Messaging.MessageFunctionType.Yes)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search