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

Benoît Minisini g4mba5 at gmail.com
Sun May 3 23:53:38 CEST 2020


Le 03/05/2020 à 22:00, Safiur Rahman a écrit :
> 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.
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 

Thanks for the investigation.

Normally Args[0] is always the name of the executable. How could it be void?

-- 
Benoît Minisini


More information about the User mailing list