I am using CSLA 1.5 with Active Objects. When the user clicks OK it calls ApplyEditSave which saves the changes (this seems to go ok) and then does a Me.Close. When it hits me.close it takes a really long time before the form closes. It seems to get stuck in UndoableBase in UndoChanges. Does anyone have any ideas why it might be getting stuck doing this?
Thanks,
Elliot
Do you have any sort of circular reference in your object model (direct or indirect)? Most common would be a parent reference of some sort, but sibling references can be circular as well.
If that is the case, n-level undo will go into an infinite loop.
To resolve the issue, use the NotUndoable attribute on an appropriate field to break the circular reference chain.
Copyright (c) Marimer LLC