[Gambas-user] Network Component Problem

Dimitri Bellini dimitribellini at ...69...
Thu Apr 15 16:25:35 CEST 2004


Dear All
	i want to use the network component so i see the example ServerSocket and i 
put it in a new Project but when i RUN it Gambas return an Error like this: 
"Null Object" in this line
Server.Type=Net.Internet
The Code:
-----
'-------------- Network Server
PRIVATE Server AS ServerSocket
PRIVATE Client AS Object[]
PRIVATE Waiting AS Boolean
.....
PUBLIC SUB Button1_Click()
  
  IF combobox2.Index=0 THEN
    'TCP
    Server.Type=Net.Internet
    ' The port to listen to
    Server.Port=Val(TextBox1.Text)
    ' we start listening
    Server.Listen(ComboBox1.Index)
  ELSE
    ' UNIX
    Server.Type=Net.Unix ' You could also use Net.Local
    Server.Path=TxtPath.Text
    Server.Listen(ComboBox1.Index)
  END IF
 -------------------------------

I used Gambas 0.92a on Mandrake 10, I found a small issue using MDK10 and 
gambas when error is found the Error Box dont is open in background under the 
Form.

PS: If i run The Example Code ServerSocket no problem found.

Thanks in advance
Dimitri




More information about the User mailing list