Android Question EditText crash in release mode

rkxo

Active Member
Licensed User
Longtime User
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
 

rkxo

Active Member
Licensed User
Longtime User
in debug mode works fine and not generate any exception, i prepare a code for this and upload
 
Upvote 0

rkxo

Active Member
Licensed User
Longtime User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…