> Hello,
> 
> At the end it works almost fine to try to open the serial port and if no
> error I suppose that it works.
> Now I try to use it. I do the same for ttyS0..S9.
> 
> On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it finds
> out that there is no serial port.
> On the ttyS2 it finds something (no error when I open). I don't know what
>  it is and no idea how to find out.
> 
> For those where I found the port, I ask for the equipment ID to identify if
> it's there or not. OK for the S0, but the ttyS2 completely freeze and when
>  I try to close the port there is no reaction.
> 
> In such a case (TRY mySerialPort.close --- no response, no error message
>  but the program frozen) is there any way to stop the process with a
>  timeout or does anyone has an ide ho to handle it?
> 
> Any help would be appreciated.
> 
> Robi
> 

Apparently when closing a serial port, the gb.net component does not just call 
the close() system call.

Can you break the frozen program with gdb and see where it is locked?

$ gdb /usr/bin/gbx2 <pid of frozen program>
...
(gdb) bt
...

Send me the result of the 'bt' command.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to