B4J Question B4Xpages and Threading lib

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Audio generator app requires to use the Threading lib, and it works as just UI B4J app, sure, in Release mode only.
But when i try to embed this code into a new B4Xpage - it does not work (in Release mode).
Maybe some forgotten nuance ?
 

peacemaker

Expert
Licensed User
Longtime User
Just the "gene_rate" sub that is to be started in a separate thread does not run.
I tried to name it with "_" also.
B4X:
Sub set_Click
    Signal.Initialise("Play")   'a new thread
    Signal.Start(Null,"gene_rate",Null)
End Sub


Sub gene_rate
    Prepare_Data1

    SDL.Start
    Do While genOff=False
        SDL.Write(sdat,0,sdat.Length)
    Loop
End Sub

Initial test UI-project is here: https://www.b4x.com/android/forum/t...m-comparing-to-jaudiotrack.144502/post-916069
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
SOLVED:
In B4Xpage code::
Signal.Start(Me,"gene_rate",Null)
 
Upvote 0
Top