Atozed Forums
Session is already locked - Causes instability - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Session is already locked - Causes instability (/thread-1789.html)

Pages: 1 2


RE: Session is already locked - Causes instability - Ryszard@sfd.co - 07-13-2020

(07-13-2020, 10:22 AM)Alexandre Machado Wrote: That's not the only recommendation. I also suggested that you disable the UI while you post a request. IntraWeb controls have a LockOnAsyncEvents property. Use it. That's the only way to prevent a impatient user to post hundreds of requests in just a few seconds.
Thanks Alexander, the LockOnAsync event is on for button click, setting the timeout to 0 didn’t work however 15 mins allowed me to log a bottleneck in the signature routine (a lazy crop white space routine), though I thought each would be threaded I believe we were receiving a massive image for the signature, I will try and put together a test to simulate and report back results.


RE: Session is already locked - Causes instability - Alexandre Machado - 07-14-2020

Your response is confusing. IntraWeb *is* threaded. Each session runs in its own thread. One session won't wait for other sessions (unless, of course, you are using all computer processors indefinitely to handle other stuff)

But IntraWeb won't fix problems in your code. If something is being shared and spending an enormous time to run, there is nothing IW can do.


RE: Session is already locked - Causes instability - kudzu - 07-14-2020

You may wish to look in our demos for the thread example which spawns an additional thread for long running tasks and uses a progress bar to update the user. Maybe its useful in your scenario.


RE: Session is already locked - Causes instability - Ryszard@sfd.co - 07-28-2020

Just an update and thank you, extending the LockSessionTimeout and fixing the slow response has stopped the error Smile


RE: Session is already locked - Causes instability - Alexandre Machado - 08-02-2020

Great!

Thanks for the feedback :-)