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


Author
Message
hector
hector
StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 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            


Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Hector:

No, this is not by design.  I will see if I can reproduce this later, there is probably a refresh someplace that is causing the second evaluation.  The StrataFlix WinForms apps hasn't been updated or changed in a long time, so there are probably some techniques that need an update anyway.  
hector
hector
StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 reputation)StrataFrame User (146 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