Hello everyone
In a B4J UI application i have this method to start a webserver (B4J non UI Application)
but the Wait For sentence is ignored
What is my mistake ??
Thanks in advance
In a B4J UI application i have this method to start a webserver (B4J non UI Application)
B4X:
Private Sub ServerStart
Dim Sh As Shell
Sh.Initialize("ServerStart", "Java.exe", Array As String("-jar", File.Combine(File.DirApp, FM.AppSvr & ".jar")))
'Sh.Initialize("ServerStart", "Java.exe", Array As String("-jar", FM.AppSvr & ".jar"))
Sh.Run(-1)
Wait For ServerStart_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log("Success=" & Success)
Log("ExitCode="& ExitCode)
Log("StdOut=" & StdOut)
Log("StdErr=" & StdErr)
' If Success And ExitCode = 0 Then
' Log("Srevidor iniciado")
' Else
' Log(StdErr)
' End If
End Sub
but the Wait For sentence is ignored
What is my mistake ??
Thanks in advance