[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gb.httpd: bind 0.0.0.0 - Address already in use


On 3/25/25 5:03 PM, gaucho wrote:
[snip]> I saw you define the connection inside the project but that force to
include the sqlite db in the project.
Setting the Connection inside the project does not force including the DB inside the project. The sqlite database file can be 
located anywhere on the accessible filesystem(s).
This is the project, i'm trying to connect to DB by code, like:

Public con As New Connection

Public Sub Main()

   Dim sName As String = "erp"
   Dim sType As String = "sqlite3"
   Dim sApp As String = User.Home &/ ".config" &/ sName

   '' Database setup
   con.Type = sType
   con.Host = sApp
   con.Name = sName & ".sqlite"
   con.Open()

   FLogin.Show

End
I tried to Show a WebForm from a module as you are attempting. It didn't work.

The project stops at the line calling the .Show() method, and the backtrace shows a "Null object" error raised by WebForm.DoShow.1247. That line, "hWindow = New WebWindow(_Current._GetWindowContainer())" apparently tries to create a new WebWindow based on the Current WebForm. But it seams that Showing the form from a module means there is no Current WebForm.
I tried setting the Current WebForm before showing the form, and got a stack overflow.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: gb.httpd: bind 0.0.0.0 - Address already in useLinus <olivier.cruilles@xxxxxxxx>
References:
gb.httpd: bind 0.0.0.0 - Address already in usegaucho <64xcode@xxxxxxxxx>
Re: gb.httpd: bind 0.0.0.0 - Address already in useT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: gb.httpd: bind 0.0.0.0 - Address already in useOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: gb.httpd: bind 0.0.0.0 - Address already in usegaucho <64xcode@xxxxxxxxx>