Error in RefreshBoundControls


Author
Message
Scott Bressette
Scott Bressette
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: Forum Members
Posts: 17, Visits: 53
I just updated to the 1.7.0.6 and screens that have the StrataFrame UserControl on them with BOTranslations to the parent form started to get errors on close. I debugged it in the StrataFrame code to the RefreshBoundControls method. It was that the _BoundControls variable was already nothing in the dispose method of the business object on the user control. The fix is simple (wrap the code checking for IsNot Nothing), but it means you now have a custom StrataFrame.dll.... I have no way of proving that it isn't something I'm doing in my dispose methods on that user control because it is very complex with several grids. So, I'm just posting it and if others have this issue, they could comment on it and say that it is an issue for everyone.



Private Sub RefreshBoundControls()

'-- Establish Locals

Dim loControl As IBusinessBindable

Dim llHasData As Boolean = (_CurrentDataTable IsNot Nothing) AndAlso (Me.Count > 0)



'-- Cycle through all bound controls

If _BoundControls IsNot Nothing Then

For Each loControl In _BoundControls

RefreshControl(loControl, llHasData)

Next

End If

End Sub
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
Send me a quick sample if possible so that I can verify this and I will post an immediate update for you once I can reproduce this to make sure that there are not any other downstream issues.
Alan Jones
Alan Jones
StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)
Group: StrataFrame Users
Posts: 7, Visits: 32
I'd like to confirm that this is a problem for me as well. 
Today I upgraded to 1.7.  After the upgrade, any forms in my application with BO translations were erroring when closing.

Scott's solution did fix the problem.

- Alan

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
Thanks, I will verify this in the morning.  I will make sure that it gets in the update! Smile
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
Fixed and in the next update. Wink Thanks, guys.
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
FYI, the update to fix this issue has been released and is available in the MyAccount area under the "Application Framework - Beta" category. See the detail post here for more info.
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Dustin,



When will you be posting the SF source code for v1.7.0.7?

Edhy Rijo

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
We'll be releasing it this afternoon. Our build server is tied up at the moment working on some tests for our medical app. As soon as it is freed up, we'll get the source package built and posted to the downloads section. Smile
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks Dustin,



I asked because I am using the Infragistics and need to build the source with the version I have before I can use any update.

Edhy Rijo

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Edhy,

The source is ready for download in the My Account area!

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