After Session ends, do unNilled WebDialogs remain in memory?

  1. 7 months ago

    Ralph A

    3 Jan 2019 Santa Monica, California

    I have a feeling this is a really naive question, but here goes. . .

    Suppose I have a Web app that dynamically creates a WebDialog and fails to Nil it when it closes. Will that object remain in memory after the Session dies? If so, will it remain in memory after the App dies (when all Sessions are gone after a certain amount of time)?

    I now always assign a dynamically created WebDialog to a WebPage Property and Nil that Property in the WebDialog's Close event. But I have an older Web app that I see doesn't do this and will soon fix it.

    As long as the WebDialog doesn't have a circular reference for parent Session or WebPage you should be good. Setting it to nil will definitely kill it but shouldn't be necessary.

  2. Bob K

    4 Jan 2019 Pre-Release Testers, Xojo Pro Answer Kansas City

    As long as the WebDialog doesn't have a circular reference for parent Session or WebPage you should be good. Setting it to nil will definitely kill it but shouldn't be necessary.

or Sign Up to reply!