[Gambas-user] Bug in Socket connection and WAIT
Benoît Minisini
gambas at ...1...
Mon Oct 12 12:34:08 CEST 2009
> Hi,
>
> I would like to signal a bug into the gambas interpreter.
>
> If I create a simple script that just create a socket and wait after a
> connection, the interpreter crashes.
> This does appen only if i don't use gb.qt or gb.gtk (I should run it into a
> pc without X ).
>
> This is the example code, the bug is riproducible in gambas 2.16. and in
> svn (2.x, didn't try the trunk)
>
> ' Gambas module file
> PRIVATE JSocket AS Socket
>
> PUBLIC SUB Main()
>
> JSocket = NEW Socket
> WITH JSocket
> .Host = "192.168.0.51"
> .Port = 8956
> .Connect
> WAIT 0.2
> END WITH
>
> END
>
>
> I'm only using GB and GB.NET components and the connection has to be valid
> (Valid host and port).
> Please let me know If I've made some mistakes.
>
> Thanks,
> Pietro
You didn't, this was a bug, fixed in revision #2390.
Regards,
--
Benoît Minisini
More information about the User
mailing list