Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-116

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.9
    • Affects Version/s: 0.7
    • Component/s: 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@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: