If Flush is called just before Close on a BsonBinaryWriter then Close throws an ArgumentOutOfRangeException

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 0.9
    • Affects Version/s: 0.7
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Code snippet to reproduce:

      var stream = new MemoryStream();
      using (var bsonWriter = BsonWriter.Create(stream))

      { bsonWriter.WriteStartDocument(); bsonWriter.WriteEndDocument(); bsonWriter.Flush(); bsonWriter.Close(); }

            Assignee:
            Robert Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: