Android Question After update to 10.2 CallSub to main from a LIbrary does not work

EduardoElias

Well-Known Member
Licensed User
Longtime User
I have upgrade my project that was working to 10.2... I was using 10.

I saw some erros and then updated using SDK Manager, after that I had a problem with OkHttp e OkHttpUtils2.

The problem is that I was using the source code of these classes from a long time ago. I removed them from the library and referenced directly the libraries that comes from B4A.

It caused the Http comunication totally stop working. Looking in the forum find out that after version 2.70 it is a problem.

Then I returned to my library the HttpJob and HttpUtils2Service (got the version 2.70) recompiled AND it made the firt comunication fine.

However I have a count of 20 calling to the server, each one bringing different JSONs and it get stuck because the CALLSUB does not work from my Library anymore:

Library:
B4X:
    If Entry.Module = Null Then
    Else
        If SubExists(Entry.Module, "OnStartServices") Then
            CallSub2(Entry.Module, "OnStartServices", FSSCount)
            Log("yClientIssuer.StartServices "&Entry.Name&" Count "&FSSCount)
        End If
    End If

That log is executed

On my app there is a class module where it has the implementation that should be called:

B4X:
Public Sub OnStartServices(Count As Int)
    LogColor("OnStart Services", Colors.Green)

It never happens.

It was all working before (many active customers using this exact code.

The fact is that going back to B4A 10.0 it does no solve the problem. So I am stuck right now. Any ideias?
 

DonManfred

Expert
Licensed User
Longtime User
Did you compile with obfuscation?

Create a small project and upload it
 
Last edited:
Upvote 0
Top