[Gambas-user] gb.web.gui application with apache2

Safiur Rahman isafiur at gmail.com
Sun May 3 22:00:46 CEST 2020


Hi

I found the bug which is causing problem in loading any form in gb.web.gui.
Args[0] in Static Public Sub Main() of WebForm Class is not taking
value. So in order to run my application with name "newapp" I
commented following lines:
' If Not Exist(Application.Path &/ Args[0]) Then
    '   If Class.IsLoaded("Debug") Then
    '     PrintLog("---------------- EXEC gbx3 -g -f " & Debug.Fifo &
" " & Application.Path & " -- " & Application.Handle & " " & sCookie)
    '     hProcess = Exec ["gbx3", "-g", "-f", Debug.Fifo,
Application.Path, "--", Application.Handle, sCookie] Wait
    '   Else
    '     PrintLog("---------------- EXEC gbx3 " & Application.Path &
" -- " & Application.Handle & " " & sCookie)
    '     hProcess = Exec ["gbx3", Application.Path, "--",
Application.Handle, sCookie] Wait
    '   Endif
    ' Else
    '   PrintLog("---------------- EXEC " & Application.Path &/
Args[0] & " " & Application.Handle & " " & sCookie)
    '   hProcess = Exec [Application.Path &/ Args[0],
Application.Handle, sCookie] Wait
    ' Endif

and added following lines:
PrintLog("---------------- EXEC " & Application.Path &/ "newapp" & " "
& Application.Handle & " " & sCookie)
    hProcess = Exec [Application.Path &/ "newapp", Application.Handle,
sCookie] Wait

Then I compiled and installed. Now I can load "newapp"  webforms in gb.web.gui.


More information about the User mailing list