padvou Active Member Licensed User Longtime User Jun 13, 2013 #1 Why would I get a Code: Copy java.lang.Exception: Sub querydo was not found. when I compile obfuscated and not when I compile without obfuscation?
Why would I get a Code: Copy java.lang.Exception: Sub querydo was not found. when I compile obfuscated and not when I compile without obfuscation?
thedesolatesoul Expert Licensed User Longtime User Jun 13, 2013 #2 So you are using CallSub with a string sub name. If you add an _ to the subname it will not be obfuscated. Like query_do Upvote 0
So you are using CallSub with a string sub name. If you add an _ to the subname it will not be obfuscated. Like query_do
padvou Active Member Licensed User Longtime User Jun 13, 2013 #3 Still did not happen.. I mean, I lose the initial exception, but the sub is never called during runtime when it's supposed to be called.. Upvote 0
Still did not happen.. I mean, I lose the initial exception, but the sub is never called during runtime when it's supposed to be called..
thedesolatesoul Expert Licensed User Longtime User Jun 13, 2013 #4 Are you sure you renamed in all the places? Both the sub declaration and the sub call? Upvote 0
padvou Active Member Licensed User Longtime User Jun 13, 2013 #5 padvou said: Still did not happen.. I mean, I lose the initial exception, but the sub is never called during runtime when it's supposed to be called.. Click to expand... Hmm.. there was one more that was called asynchronously that needed editing with the "_" Now it works. Strange though... In previous projects there seemed to be no issue like this. Same way of calling them asynchronously, same way of exiting to main thread.. Thank you! Upvote 0
padvou said: Still did not happen.. I mean, I lose the initial exception, but the sub is never called during runtime when it's supposed to be called.. Click to expand... Hmm.. there was one more that was called asynchronously that needed editing with the "_" Now it works. Strange though... In previous projects there seemed to be no issue like this. Same way of calling them asynchronously, same way of exiting to main thread.. Thank you!
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2013 #6 If the sub is called with a simple string like: Code: Copy CallSub(SomeModule, "SomeSub") Then the compiler will not obfuscate this sub name and it will work properly. However if there is a variable instead of a string then the compiler cannot know that this sub should not be obfuscated. Upvote 0
If the sub is called with a simple string like: Code: Copy CallSub(SomeModule, "SomeSub") Then the compiler will not obfuscate this sub name and it will work properly. However if there is a variable instead of a string then the compiler cannot know that this sub should not be obfuscated.
padvou Active Member Licensed User Longtime User Jun 14, 2013 #7 Since I 'm using CallSubExtended by Informatix, I would not know if this is the case here Upvote 0