[Gambas-user] UDP Segmentation Fault

Patrick Wright patrickfrog at ...626...
Thu Jul 30 19:20:30 CEST 2015


I am either doing something incorrectly or there is a bug with UDP sockets in Gambas. I have created a new instance    of a UDPSocket, set its Port property, and called the Bind method. 

I have an event handler for the Read event on this socket. In this method I am simply using Read #MySocket, Val, Lof(MySocket) to get the data that was sent.  Up to this point everything works as intended, however when I try to send a reply using Write, the program crashes and Ubuntu gives a Segmentation Fault. I have tried using the Begin and Send methods, but this causes the same error.

Am I going about this the wrong way?

Gambas Version: 3.7.1

Thanks,
Patrick



More information about the User mailing list