[BUG] "End Sub" somehow became "Try"

Alex69

Member
Licensed User
Longtime User
Very strange bug. Seems like devils magic...:confused:

Compiling code. 0.03
Compiling layouts code. 0.00
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 11
End Sub
javac 1.7.0_04
src\com\newalarm\adder.java:344: error: 'try' without 'catch' or 'finally'
try {
^
1 error

B4X:
 8 Sub Globals
 9 Dim lst As ListView
 10 Dim inp As InputDialog
 11 End Sub
 
Last edited:

Alex69

Member
Licensed User
Longtime User
Tried to enter "End Sub" manually... Didn't help. It somehow connected with "Dim" I think. When I remove them , everything works fine. The strangest bug of all times , indeed.

This seems like anti-piracy protection but I have licensed program .
 
Last edited:

Alex69

Member
Licensed User
Longtime User
:sign0060: Problem solved. I simply misplaced If - End If statement. That's my fault of course, but why B4A didn't detect it - I don't know.
 

mc73

Well-Known Member
Licensed User
Longtime User
:sign0060: Problem solved. I simply misplaced If - End If statement. That's my fault of course, but why B4A didn't detect it - I don't know.
That's why I was asking you to check for try...catch. Similarly to if blocks, and perhaps do loops, when they are not correctly closed, you get these type of errors :)
 
Top