Hi All!
I have a non-UI app and a code, where I call an external program:
The external program runs correctly, but in _RELEASE_ mode the last executed line is the 11.
After that no return in line 15 The program flow 'disappear'. No error code, no clue...
I cleaned my app: no changing. In debug mode all is ok, in release mode only the problem.
How can I reveal the reason of this disappearing?
thanks in advance
Steven
I have a non-UI app and a code, where I call an external program:
B4X:
Sub startLister2(param As String) As ResumableSub
If File.Exists(File.DirApp,"lszamlawr.exe") Then
...
Dim shl As Shell
shl.Initialize("shl", "lszamlawr.exe",pl)
shl.WorkingDirectory = File.DirApp
shl.InputStreamEnabled = True
shl.RunWithOutputEvents(-1)
'Wait For (shl) shl_StdOut (Buffer() As Byte, Length As Int)
wait For (shl) shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log($"$DateTime{DateTime.Now} - listgenerátor kész. Success:${Success} Exitcode:${ExitCode}"$)
Else
doLog("Lister2","Nem készíthető A/4-es lista, nincs meg a nyomtató modul!" & CRLF & File.dirapp)
End If
Return True
End Sub
After that no return in line 15 The program flow 'disappear'. No error code, no clue...
I cleaned my app: no changing. In debug mode all is ok, in release mode only the problem.
How can I reveal the reason of this disappearing?
thanks in advance
Steven