changed it to this, it should work fine now, I guess:
VB Code:
  1. While sr.Peek <> -1
  2.                 aLine = sr.ReadLine().Trim()
  3.                 If aLine.Length = 0 Then
  4.                     codeInfo.EmptiesCount += 1
  5.                 ElseIf aLine.StartsWith("/*") Then
  6.                     While sr.Peek <> -1
  7.                         codeInfo.CommentCount += 1
  8.                         If aLine.IndexOf("*/") <> -1 Then
  9.                             Exit While
  10.                         End If
  11.  
  12.                         aLine = sr.ReadLine
  13.                     End While
  14.  
  15.                 ElseIf aLine.StartsWith("//") Then
  16.                     codeInfo.CommentCount += 1
  17.                 Else
  18.                     codeInfo.CodeCount += 1
  19.                 End If
  20.             End While

I'd appreciate some more testers