[Gambas-user] PING > Benoît (ServerSocket)

Kad Mann nospam.nospam.nospam at ...626...
Fri Nov 6 08:15:38 CET 2009


On Thu, 2009-11-05 at 11:54 +0100, Benoît Minisini wrote:

> Did you test the connection with telnet, or any other non-Gambas program? Did 
> you test another socket server application not made in Gambas?

No. I don't have one.

> The only possibility I see would be a memory corruption in the network 
> component - it is possible, I didn't write it :-). By reading the source code 
> of the Listen() method, I didn't see anything that could lead to that. But I 
> will check again.

That's all I'm asking :)

> A way to see these kinds of error is running Gambas inside valgrind:
> 
> $ cd /path/to/my/application/project
> $ valgrind --tool=memcheck --num-callers=40 --track-origins=yes gbx2
> ...
> 
> And tell me all the messages reported by valgrind during the life of the 
> application.
> 
> 
> > The broken pipe error is irrelevant because I am using a different
> > machine and still have the same issue.
> > 
> 
> I thought you were talking about an error message from your gambas 
> application.

The message was in Gambas. A Windows server rebooted. However since then
I have changed machines (both the server machine and the workstation)
and had the same problem with PUBLIC SUB Socket_Read() or WRITE #Client
in PUBLIC SUB Socket_Ready()... until I swapped those two lines of code
around.

> > > the ServerSocket example stopped working too
> > 
> > Yes, it did.
> > 
> > I'll keep my eye on the problem. I want to be able to say, "I TOLD YOU
> > SO!!!"
> > 
> > Mind you, it doesn't exactly instil confidence in me to bother getting
> > the application finished.
> > 
> 
> If the information you gave are all exact (rebooting changed nothing, suddenly 
> everything works again), the problem should come from something outside of the 
> operating system.

It wasn't working until I the instant I swapped those two lines then,
VOILA! It suddenly worked and refused to let me repeat the problem.

Anyway, all I wanted was for you to take a look and you've offered to do
that so I'm happy. If it happens again I'll let you know if I discover
anything.

Thanks, your help is appreciated.

> Regards,
> 







More information about the User mailing list