Stack overflow on validation

Last post 10-08-2009 10:55 AM by Sgro. 0 replies.

Sort Posts:

  • Stack overflow on validation

    10-08-2009, 10:55 AM
    • Participant
      762 point Participant
    • Sgro
    • Member since 06-10-2006, 3:55 AM
    • Posts 342

    I am using validators on my POCO classes for business validation.


    When validating a class that references another class, or a collection of other classes (I apply objectvalidator or objectcollectionvalidator accordingly), I always get a stack overflow exception.

    It seems like that each class keeps calling all referenced classes, including the calling one, and this leads to an infinite loop.


    How can I avoid this?


    Thanks.

    Matteo Mosca
    Web Developer
    IWA Member
Page 1 of 1 (1 items)