hparra / ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports
http://rubygems.org/gems/serialport
GNU General Public License v2.0
246 stars 58 forks source link

Unsupported settings do not SetLastError() under Windows (XP?) #21

Open hparra opened 14 years ago

hparra commented 14 years ago

from asquared: "In other news, Windows (XP at least) is brain dead. From the looks of things, if you pass a baud rate or other DCB settings which happen to be unsupported by the hardware, SetCommState returns zero but doesn't SetLastError( ) in the process. This in turn causes the Ruby interpreter to crash..."

hparra commented 14 years ago

The same exact behavior needs to be confirmed for Vista/7. I would like to confirm whose fault this is (OS? Ruby?)