I have a web app where I’m using timers to run code in order to show a spinner, do it’s work, and clean up when done. All of the code is running in methods called from the timer. For now, I’ll by pass the timer, but I’d really like to show spinners while my code does it’s thing.
I never know when the SessionShutdownThread will appear, but its looks like the following. Any clues about why this is happening?
The SessionShutdownThread ‘randomly’ happens when I’m about to place a container using EmbedWithin which results in a SessionNotAvailableException. The SessionShutdownThread might appear on loading the first contact after running the project or after clicking 10 contacts.
However, I’m setting the WebSessionContext above the EmbedWithin. My dimmed theSession is set with the session.
In this pic, I drilled in to theSession which shows that theSession is set.
Source is here:
https://github.com/campsoftware/Xojo-Xanadu
The Timer in question is on ContactsPage called DetailLoadTimer.