R rkxo Active Member Licensed User Longtime User Mar 14, 2017 #1 Why when i execute this sub in release mode crash and in debug mode not in b4a 6.50? Dim op As Panel= InfoFinalLw.GetPanel(5) --> Dim ui As EditText = op.GetView(2) 'this generate a Exception ChangeItemPanelHeight(InfoFinalLw,5,20*getLineCount(ui)) if i change this not crash works but not count number of lines Dim ui As Label = op.GetView(2) Thanks
Why when i execute this sub in release mode crash and in debug mode not in b4a 6.50? Dim op As Panel= InfoFinalLw.GetPanel(5) --> Dim ui As EditText = op.GetView(2) 'this generate a Exception ChangeItemPanelHeight(InfoFinalLw,5,20*getLineCount(ui)) if i change this not crash works but not count number of lines Dim ui As Label = op.GetView(2) Thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 14, 2017 #2 Please post the error message from the logs and if possible upload a project that demonstrates the issue. Upvote 0
Please post the error message from the logs and if possible upload a project that demonstrates the issue.
R rkxo Active Member Licensed User Longtime User Mar 14, 2017 #3 This exception does not generate any errors in the logs screen Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 14, 2017 #4 There must be an error. Switch to USB debug mode if you don't see it. Please upload a project that demonstrates the issue. Upvote 0
There must be an error. Switch to USB debug mode if you don't see it. Please upload a project that demonstrates the issue.
R rkxo Active Member Licensed User Longtime User Mar 14, 2017 #5 in debug mode works fine and not generate any exception, i prepare a code for this and upload Upvote 0
R rkxo Active Member Licensed User Longtime User Mar 14, 2017 #6 I was captured the exception in release mode java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText in debug works fine Upvote 0
I was captured the exception in release mode java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText in debug works fine
Erel B4X founder Staff member Licensed User Longtime User Mar 14, 2017 #7 It sounds like a bug in your code. You are trying to treat a label as an EditText. Upvote 0
R rkxo Active Member Licensed User Longtime User Mar 15, 2017 #8 woks fine with label thanks Erel Upvote 0