Vision Posted March 31, 2020 Share Posted March 31, 2020 Hi, small question unigui vers 1.9.0.1526 in general if I close a browser tab (whith an unigui session inside) i receive UniFormAjaxEvent='bclose' and then TUniBaseJSForm.DoDestroy-> UniFormDestroy BUT if i execute a thread i dont receive that events. WHY? the session stay alive.. My problem is that i need to terminate a worker thread when the container session is closed.I just can see a UniFormDestroy when i terminate my application.. hint???? tnks Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 31, 2020 Administrators Share Posted March 31, 2020 Hi The question here is that how and where do you execute the thread? Quote Link to comment Share on other sites More sharing options...
Vision Posted March 31, 2020 Author Share Posted March 31, 2020 41 minutes ago, Farshad Mohajeri said: Hi The question here is that how and where do you execute the thread? Hi Mr Farshad In mainform I create an instance of this thread when a user presses a button. The operation could be very long so I want to be able to invoke tthread.terminate when the session is abandoned by the user. This object is a private variable of the main form. Tnks for help Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 31, 2020 Administrators Share Posted March 31, 2020 Can you reproduce this behavior in a test app? 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.