Re: [Twisted-Python] SerialPort.loseConnection() BUG Still

2009-06-17 Thread Lucas Taylor
On 6/16/09 12:37 PM, Nestor A. Diaz wrote: > Hello, i had wrapper the loseConnection method, but it still throws the > same excepcion: > > class MySerialPort ( SerialPort ) : > > def __init__(self, the_protocol, port, reactor): > # type, host and port are used for my own purposes. >

Re: [Twisted-Python] SerialPort.loseConnection() BUG Still

2009-06-16 Thread Nestor A. Diaz
Hello, i had wrapper the loseConnection method, but it still throws the same excepcion: class MySerialPort ( SerialPort ) : def __init__(self, the_protocol, port, reactor): # type, host and port are used for my own purposes. self.type = "Local" self.host = None self.p

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-13 Thread Jean-Paul Calderone
On Sat, 13 Jun 2009 22:26:48 +0100, James Mansion wrote: >gl...@divmod.com wrote: >> Since I'm seeing more and more messages where someone is top-posting, I >> think it might be helpful if we sent a more specific example of a >> >You could try not being anal about it. In 2 decades working in >in

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-13 Thread James Mansion
gl...@divmod.com wrote: > Since I'm seeing more and more messages where someone is top-posting, I > think it might be helpful if we sent a more specific example of a > You could try not being anal about it. In 2 decades working in investment banks I don't think I've seen a work evironment wh

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-11 Thread biziap biziap
2009/6/11 Jean-Paul Calderone : > > Do you have an example which demonstrates the problem? There's no way to > know why you encounter the problem without knowing what your program is > doing. > I am developing a program which verifies every PCB in manufacturing factory. The tester (WindowsXP user

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-11 Thread Jean-Paul Calderone
On Thu, 11 Jun 2009 08:11:42 +, biziap biziap wrote: >>>Maybe you can try to call transport.flushInput(), transport.flushOutput() >>>before loseConnection(). >>> >> >> No, this is wrong. Do not call these methods, ever. >> > >I have experienced the same problem, >by calling the flashOutput, f

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-11 Thread biziap biziap
>>Maybe you can try to call transport.flushInput(), transport.flushOutput() >>before loseConnection(). >> > > No, this is wrong. Do not call these methods, ever. > I have experienced the same problem, by calling the flashOutput, flashInput solved that problem in my case. Maybe it is a workaround.

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-10 Thread glyph
On 10 Jun, 12:23 pm, exar...@divmod.com wrote: >Please don't top-post. Since I'm seeing more and more messages where someone is top-posting, I think it might be helpful if we sent a more specific example of a positive example of what replies are expected to look like. I think for now it might

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-10 Thread Jean-Paul Calderone
On Wed, 10 Jun 2009 11:20:15 +0800, biziap biziap wrote: Please don't top-post. >Maybe you can try to call transport.flushInput(), transport.flushOutput() >before loseConnection(). > No, this is wrong. Do not call these methods, ever. > >2009/6/9 Nestor A. Diaz : >> Hello, there is a bug on t

Re: [Twisted-Python] SerialPort.loseConnection() BUG

2009-06-09 Thread biziap biziap
Maybe you can try to call transport.flushInput(), transport.flushOutput() before loseConnection(). 2009/6/9 Nestor A. Diaz : > Hello, there is a bug on the SerialPort Win32 implementation (don't know > about the others), when i call the loseConnection method, it returns: > > twisted matrix except

[Twisted-Python] SerialPort.loseConnection() BUG

2009-06-08 Thread Nestor A. Diaz
Hello, there is a bug on the SerialPort Win32 implementation (don't know about the others), when i call the loseConnection method, it returns: twisted matrix exceptions.AttributeError: 'SerialPort' object has no attribute '_tempDataBuffer' if i wrap the serialport class and put a : se