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

StackoverflowException occours when I serialize an object witha nhivbernate persistentbag

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.1
    • Affects Version/s: 1.3.1
    • Component/s: None
    • None
    • Environment:
      Windows 64 bit

      I'm usingn mongo for logging, when I try to call ToBsonDocument on an object that is mapped with nhibernate and has a property of type IList<T>, nhibernate will create a PErsistentGenericBag<T>, and it cause a StackOverflowException when I call ToBsonDocument

      The exact type of the property is
      Name = "PersistentGenericBag`1" FullName = "NHibernate.Collection.Generic.PersistentGenericBag`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]"} System.Type

      {System.RuntimeType}

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            alkampfer@nablasoft.com Gian Maria Ricci
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: