This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I’m currently evaluating using LightSpeed for a WPF application. I’ve run into a problem whereby I get a StackOverflowException when I use a XAML binding to lazy load a related child collection. Given an Order class, that has a collection of OrderLines, the problem becomes evident when you fetch the Order with any of the standard querying mechanisms.
Order = unitOfWork.FindById<Order>(1);
The Order property is set on a ViewModel which has been assigned as the View’s DataContext. Then, I use markup like the following:
<ListView ItemsSource="{Binding Order.OrderLines}">...</ListView>
This line will cause LightSpeed to repeatedly fetch the OrderLines, and will quickly generate a StackOverflowException. Now if you force the loading of the lazy load collection in code before you set the binding, everything works ok.
I can send you a sample project which illustrates the problem.
|
|
|
Thanks for alerting us to this. We've reproduced it and it will be fixed in the next nightly build. Let us know if you still see problems after that! |
|