From: Travis Whitton Date: 2003-01-08T02:32:22+09:00 Subject: Re: Windows Serial Port > nRet = fWriteFile.call(hCom, txBuffer, txBuffer.size, ptxBytes, NULL) > txBytes = ptxBytes.unpack("L")[0] #=> 4 The program hangs right here waiting for a read to happen. I know that the write is successful because the SD light on my modem blinks. I have to kill the cygwin window that ruby is running in in order to kill the program. > nRet = fReadFile.call(hCom, rxBuffer, rxBuffer.size, prxBytes, NULL) > rxBytes = prxBytes.unpack("L")[0] #=> 10 > > rxBuffer[0...rxBytes] #=> "ATZ\r\r\nOK\r\n" Any ideas? Thanks, Travis Whitton