AlexM123 Posted February 20, 2016 Share 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 Link to comment Share on other sites More sharing options...
rgreat Posted February 20, 2016 Share 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 Link to comment Share on other sites More sharing options...
AlexM123 Posted February 24, 2016 Author Share Posted February 24, 2016 Thank you rgreat Quote Link to comment Share on other sites More sharing options...
AlexM123 Posted February 24, 2016 Author Share Posted February 24, 2016 Probably ScreenMask will help me. I prefer using intrinsic tools Quote Link to comment Share on other sites More sharing options...
AlexM123 Posted February 25, 2016 Author Share Posted February 25, 2016 Unfortunately it does not help me . After some time the applications writes: "Connection Error communication failure: 0" "Retrying ... xx" Quote Link to comment Share on other sites More sharing options...
AlexM123 Posted February 25, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
rgreat Posted February 25, 2016 Share 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 Link to comment Share on other sites More sharing options...
rgreat Posted February 25, 2016 Share 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 Link to comment Share on other sites More sharing options...
AlexM123 Posted February 26, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
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.