Bug Report Q145919
Visible to All Users

Problem in the Designer after playing with the ExpandObjectMembersAttribute on the referenced property of the same type as the owner class

created 16 years ago

I seem to be having problems with the UI Modification using the Model.DesignedDiffs. I modify the layout of a detail view in the application.module, then, later in my work, I set the attribute ExpandObjectMemebers on a reference property of an object and the designer for the Model.DesignedDiffds breaks. If I open the xafml file through the code editor and remove the XML for the view definition, it works but of course my changes are gone. Or if I take the ExpandObjectMembers attribute off of the property. I have has other problems with the xafml file where I will get errors after making changes to BO's after modifying UI. It seems that this fie is very fragile.
Can you please advise me on the best process for performing UI change and if there is some sequence I should follow when making UO changes.
Actual Results:
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed may require code or model changes.
Exception of type 'System.OutOfMemoryException' was thrown.
EditorsNodeWrapper properties, String leadingPropertyPath, Boolean includeKeyProperty)
   at DevExpress.ExpressApp.InfoGenerators.DetailViewNodeGenerator.GenerateDetailViewProperties(ClassInfoNodeWrapper classNode, EditorsNodeWrapper properties, String leadingPropertyPath, Boolean includeKeyProperty)
   at DevExpress.ExpressApp.InfoGenerators.DetailViewNodeGenerator.GenerateDetailViewProperties(ClassInfoNodeWrapper classNode, EditorsNodeWrapper properties, String leadingPropertyPath, Boolean includeKeyProperty)
   …
   …
   …
   at DevExpress.ExpressApp.InfoGenerators.DetailViewNodeGenerator.GenerateDetailViewProperties(ClassInfoNodeWrapper classNode, EditorsNodeWrapper properties, String leadingPropertyPath, Boolean includeKeyProperty)
   at DevExpress.ExpressApp.InfoGenerators.DetailViewNodeGenerator.Generate(DetailViewInfoNodeWrapper detailView, ClassInfoNodeWrapper classNode)
   at DevExpress.ExpressApp.InfoGenerators.DefaultInfoGenerator.GenerateDetailView(ClassInfoNodeWrapper classInfo)
   at DevExpress.ExpressApp.InfoGenerators.DefaultInfoGenerator.Generate(ApplicationNodeWrapper model)
   at DevExpress.ExpressApp.ApplicationModulesManager.GenerateDefaultModelForViews()
   at DevExpress.ExpressApp.ApplicationModulesManager.LoadModel(ITypesInfo typesInfo)
   at DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo)
   at DevExpress.ExpressApp.ApplicationModulesManager.Load()
   at DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.LoadModel(ITypeDiscoveryService typeDiscoveryService, ITypeResolutionService typeResolutionService)
   at DevExpress.ExpressApp.Design.ModelEditor.EditorPane.PrivateInit(String fileName, ModelLoader modelLoader)

Comments (1)
Dennis Garavsky (DevExpress) 16 years ago

    Hello Howard,
    >>
    then, later in my work, I set the attribute ExpandObjectMemebers on a reference property of an object and the designer for the Model.DesignedDiffds breaks.
    It seems that this fie is very fragile.
    <<
    Thanks a lot for sharing your experience when working with XAF designers. I followed your steps using the MainDemo and modified the Contact_DetailView layout and then applied the [ExpandObjectMembers( ExpandObjectMembers.InDetailView)] line to the Manager property. Then, I opened the designer again and it crashed in an infinite loop. It looks like a bug, and I have converted your question into a Bug report with the same ID. I also collected the call stack, is this the same as yours?
    We will look into it, and will let you know about our results soon.
    Unfortunately, we have not yet found a good temporary workaround to this problem.
    Thank you for your patience,
    Dennis

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.