Stack Overflow Error

Stack Overflow Error

Old forum URL: forums.lhotka.net/forums/t/2096.aspx


baron posted on Tuesday, January 09, 2007

I'm getting the following error after retrieving a list of objects:

An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

The objects inherit from BusinessBase and the list inherits from BusinessListBase.  The debug breakpoint stops in the UndoableBase object in the CopyState method.

Any help with this issue is greatly appreciated.

By the way, I've tried using the following CSLA versions 2.0.3, 2.1, and 2.1.1.

Thanks

skagen00 replied on Tuesday, January 09, 2007

It is a recursive method so do you have anything in your object graph that would be a circular sort of reference?

Where in UndoableBase does it cause the behavior? Have you stepped through the debugger within the Csla object?

baron replied on Tuesday, January 09, 2007

Found the circular reference.  Thanks!

sasi replied on Tuesday, July 22, 2008

Can you please tell me the solution that you have found to avoid circular references. I am facing similar issue and this would be of great help for me.

Thanks in Advance

Sasidhar

Copyright (c) Marimer LLC