Android Question [SOLVED] Strange error when compiling obfuscated

Sandman

Expert
Licensed User
Longtime User
My app works nicely both in debug and release, but now that I'm ready to publish it I tried compiling obfuscated. This didn't work at all, instead I got this error:

B4X:
B4A Version: 7.30
Parsing code.    Error
Error parsing program.
Error description: Unexpected variable name: _data_from
Error occurred on line: 47 (CL_NET)
failedStatusCount = 0

So we had an error because of an unexpected variable name, which appeared in i line without that variable name. That doesn't really make sense to me... What am I missing?

Line 47 in CL_NET is as described in the error:
B4X:
failedStatusCount = 0

And the unexpected variable name doesn't exist in the project at all. (But in CL_NET I do have a sub called set_data_from.)

Any ideas?
 

Sandman

Expert
Licensed User
Longtime User
Another update: From a hunch by a fellow forum member, I tried renaming the sub so that it didn't start with "set". Then I could compile it obscured, right away.

So perhaps the error message could be adjusted to clarify the forbidden prefix I used? And also, do we have a forum page that lists these unexpected features of B4X? This one was new to me, but I've heard something about subs should (or should not, can't remember) contain an underscore for something to work. Perhaps there are more? Might be good to list them all..?
 
Upvote 0
Top