[DevExpress Support Team: CLONED FROM B181657: Layout - Troubleshooting the "Error creating window handle" or "Infinite recursion detected: the 'XXX' view was created 51 times" errors]
Starting with v16.1, there will be InfiniteRecursionException from XAF when such an error configuration is detected at runtime.
Please prohibit saving the layout when this error occurs.
Hello Willem,
Would you please describe in detail your use-case scenario, the issues with layout saving, and expected results? This information will help us better prioritize your suggestion.
Hello Dennis,
When running into this error, the user cannot quit the program without the layout of this view being persisted (unless he uses the taskmanager to force the program to end, probably).
Upon reopening the view (even after restarting the program) the same error occurs.
This results in a call to the helpdesk to resolve the issue. In case the user has the right to modify the model, it can be done that way. But if the user does not have this right, the helpdesk has to search the aspects records of the model differences record of the user and find the offending view in the text representation of the model differences.
Not saving the layout to the database after this error would save a lot of time.
+1
We use a lot the ListviewAndDetailview feature (it can be activated by the user by using an action in every listview), and we see this scenario a lot of times.
Hello,
Thank you for your feedback. Please give us additional time to discuss it.
Andrey
@Willem de Vries
Hello,
While we are researching the issue, would you please specify the exact cases that lead to this exception in your scenarios? Is it thrown when a user sets the 'ListViewAndDetailView' option? If you face this issue in other circumstances, please describe them.
Thanks,
Andrey
In this case it was not the moment a user switched to ListViewAndDetailView, but when he added in the detailview (Customize layout) a collection of the same kind of objects, with also a listview that already was in ListViewAndDetailView mode.
Thank you for the confirmation!
Andrey
Hello,
We will introduce a mechanism to prevent saving a layout that was broken because of infinite master-detail list views: T887270 - WinForms - Adding a list view in the master-detail mode breaks a layout in some circumstances.
Please add this thread to your favorites to be notified of our progress.
Thanks,
Andrey