Ticket T106536
Visible to All Users

Persistent-specific operation is performed with a non-persistent class exception using PopupShowWindowAction

created 11 years ago

On a DetailView I have a PopupShowWindowAction handled in a View Controller

*    The PopupShowWindowAction opens a Detail View of a "MaterialChooser" object for the user to select a Material
*    In the PopupShowWindowAction Execute event this Material is used to change the objects in the Detail View's nested List View

All works fine…  Except - when opening a Detail View of an object in the nested ListView this exception occurs:

C#
Persistent-specific operation is performed with a non-persistent class 'Firebelly.Module.Fabrication.MaterialChooser'

The "MaterialChooser" class is indeed marked as NonPersistent and inherits from a persistent class "Material" which has [Rule] attributes

I am guessing this means that something - Session? - is holding a reference to the PopupShowWindowAction's MaterialChooser?

Why is the reference held?
How can I avoid this exception?

Show previous comments (6)
DevExpress Support Team 11 years ago

    Thank you for your reply. I hope the solution you've found works for you. Should you need any further assistance, please let me know.

    AB AB
    Andrew Bingham 2 11 years ago

      Hi MichaelI the used the MaterialChooser class in another view and got a similar problem…So -I have made the MaterialChooser class Peristent - but don't Save on Accept This works better - and the only cost is an empty table in the database

      DevExpress Support Team 11 years ago

        If you need any additional assistance, please provide us with a small sample project demonstrating your scenario, because details of your implementation are still unclear.

        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.