Corrections List for Serial Port Complete Second Edition by Jan Axelson Last update: 5/6/08 If you find an error, please send it to me at jan@janaxelson.com. This list is available online at www.janaxelson.com. These errors are corrected with each printing of the book, so your copy may have some or all of these errors corrected. p. 66-67 Change all references to MAX232 to MAX3232. p. 149 Change: MSC2120 to MCP2120 p. 157 On the third to last line, change: If (index = nameArray.GetUpperBound(0)) Then to: If (Not (nameArray(index) = myComPortName)) Then p. 158 Just below: // If the desired port isn't found, select the first port in the array. Change: if ( index == nameArray.GetUpperBound( 0 ) ) to: if (!(nameArray[index] == myComPortName)) p. 168 Just below: Dim count as Integer Delete: Dim numberOfReceivedBytes As Integer p. 169 Just below: Int32 count; Delete: Int32 numberOfReceivedBytes; p. 194 Delete this VB code: ' Define a delegate class to handle DataReceived events. Friend Delegate Sub SerialDataReceivedEventHandlerDelegate _ (ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) Delete this VC# code: // Define a delegate class to handle DataReceived events. internal delegate void SerialDataReceivedEventHandlerDelegate (object sender, SerialDataReceivedEventArgs e); p. 195 Change: 'Place code to read and process data here. To: // Place code to read and process data here. p. 211 In the top two code blocks, delete everything except: VB Private SerialPinChangedEventHandler1 _ As New SerialPinChangedEventHandler(AddressOf PinChanged) VC# private SerialPinChangedEventHandler SerialPinChangedEventHandler1; SerialPinChangedEventHandler1 = new SerialPinChangedEventHandler(PinChanged); p. 214 Delete the VB code above this line: Private SerialErrorReceivedEventHandler1 _ As New SerialErrorReceivedEventHandler(AddressOf ErrorReceived) p. 215 Delete the VC# code above this line: private SerialErrorReceivedEventHandler SerialErrorReceivedEventHandler1; (In recent printings, the line of code above is on p. 214 because the unnecessary code has been removed.)