X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_40,J_CHICKENPOX_33 X-Spam-Check-By: sourceware.org Date: Fri, 23 Jan 2009 11:17:57 +0100 From: Spiro Trikaliotis To: cygwin AT cygwin DOT com Message-ID: <20090123101756.GA8160@trikaliotis.net> Mail-Followup-To: cygwin AT cygwin DOT com References: <7701e1400901220725r5712f806sff846b9aff8b4be3 AT mail DOT gmail DOT com> <20090122155522 DOT GA5369 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090122155522.GA5369@ednor.casa.cgf.cx> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-SA-Exim-Connect-IP: 87.163.235.220 X-SA-Exim-Mail-From: an-cygwin AT spiro DOT trikaliotis DOT net Subject: Re: Problem using select() with com0com virtual serial ports X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on mail.trikaliotis.net) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello, * On Thu, Jan 22, 2009 at 10:55:22AM -0500 Christopher Faylor wrote: > On Thu, Jan 22, 2009 at 10:25:32AM -0500, Paul Ingemi wrote: [...] > It is a simple enough hack that I don't mind adding it, if it fixes your > problem but I am not convinced that your driver is operating correctly. As I had added serial port access to the Windows version of VICE one or two months ago, I can tell that the com0com driver is indeed buggy. One of my testers always claimed that the serial support just did not work. After some debugging with him, we found out that it is com0com that is "problematic", to say it positively. Taking into account the opinion at various MS related newsgroups, which states that the serial port driver of Windows is most probably one of the most complicated drivers in the Windows driver world (neglecting the filesystem drivers), this is not very surprising. Additionally, the driver sources are very complicated, giving much room for BSODs if something is not done correctly. I also have not seen any USB to serial adapter yet where its drivers could not bluescreen the whole machine if "the right steps were taken". The drivers for the Prolific PL2312 chip is one of the worser variants, just pressing Ctrl+C in the right moment in your console application will create a BSOD. I think this shows enough that it is indeed very hard to get it right. IMHO, the better solution is to fix com0com, and not to apply some hotfixes to other software (cygwin, VICE, whatever). That's the approach I followed, too, ignoring com0com completely. If I might have some time, I might want to debug com0com myself, but don't hold your breath on it. Best regards, Spiro. -- Spiro R. Trikaliotis http://opencbm.sf.net/ http://www.trikaliotis.net/ http://www.viceteam.org/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/