@Hal Gumbert - Just running your project I am getting a ThreadAlreadyRunning exception in your DetailLoad method. This means that you’re calling Run on a thread that you’ve previously called it before letting it finish. You should be checking the state of the Thread before calling Run on it again.
Just to rewind a bit, my only reason for using WebThreads and previously WebTimers is to show a spinner and disable controls while my code runs. If there was a call I could make to update the UI during the round trip to the server, I’d be all for it and wouldn’t need WebThreads as my code runs without errors when I take WebThreads and WebTimers out of the equation. Stepping even further back, if WebListboxes could show containers in the rows like iOSTable, I don’t think I’d need scrolling containers.
I took your advice and updated my calling of “DetailLoadDoThread.Run” to check for the thread state. I also added a boolean property as an extra measure. The following is what my ContactsPage.DetailLoad method looks like. This method is the only place I run the WebThread.
[code] If DetailLoadFlag Then
DetailLoadFlag = true
If DetailLoadDoThread.State = DetailLoadDoThread.NotRunning Then
SpinnerUpdate( "Show" )
If true Then
// Run the WebThread
// Run same code as the WebThread
SpinnerUpdate( "Hide" )
DetailLoadFlag = false
I’ve tried 2016r3 and 2016r4b4. Both result in the same problem. It doesn’t happen every time I click on a contact, but definitely 20 or less clicks. Usually less than 8 clicks.
Are you able to reproduce the errors that I show in my vid/project linked three posts above this post?[/quote]
I’ve been looking at this a little every day, mostly to see if I can come up with a way to reliably reproduce it on every click. So far nothing has jumped out at me.