AlexM123 Posted February 20, 2016 Posted February 20, 2016 Dear colleagues, In my UniGUI project which is ported from VCL there is a time-consuming procedure. How can I prevent UniGUI from reconnecting ? Should I wrap the procedure in a Thread ? Quote
rgreat Posted February 20, 2016 Posted February 20, 2016 Should I wrap the procedure in a Thread ? Basically - Yes. Or you can increase time-outs. But that's not really nice solution. You can also check this: http://forums.unigui.com/index.php?/topic/6348-screen-mask-simply-long-process-solution-with-8-themes/ Quote
AlexM123 Posted February 24, 2016 Author Posted February 24, 2016 Probably ScreenMask will help me. I prefer using intrinsic tools Quote
AlexM123 Posted February 25, 2016 Author Posted February 25, 2016 Unfortunately it does not help me . After some time the applications writes: "Connection Error communication failure: 0" "Retrying ... xx" Quote
AlexM123 Posted February 25, 2016 Author Posted February 25, 2016 Also I tried to wrap the time consuming procedure to Thread. But inside THread UserSession can not be retrieved. I'd like to describe the procedure: It gets some user unput, than fetch some data in a database, generate a report file as Excel , and send the report back to the user. Quote
rgreat Posted February 25, 2016 Posted February 25, 2016 Unfortunately it does not help me . After some time the applications writes: "Connection Error communication failure: 0" "Retrying ... xx" Increase Ajax timeout in server module. Quote
rgreat Posted February 25, 2016 Posted February 25, 2016 Also I tried to wrap the time consuming procedure to Thread. But inside THread UserSession can not be retrieved. Thread does not have any connections to session. Create thread and check result periodicaly from web client timer event. Check this sample: http://forums.unigui.com/index.php?/topic/1479-progressbar-multithreading-demo/ Quote
AlexM123 Posted February 26, 2016 Author Posted February 26, 2016 Thread does not have any connections to session. Create thread and check result periodicaly from web client timer event. Check this sample: http://forums.unigui.com/index.php?/topic/1479-progressbar-multithreading-demo/ Thank you for the suggestion Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.