Jump to content


Photo

A small feature required


  • Please log in to reply
1 reply to this topic

#1 Rav

Rav

    Active Member

  • Members
  • PipPipPip
  • 87 posts

Posted 07 August 2016 - 08:34 PM

Hello,

Is there possible to add in TUniServerModule module a property like Terminated or a method Terminate which stops Application.Run loop? Application.Terminate doesn't work.

First I thought that when I buy the license with sources I will add such termination way myself but I have just looked through the feature matrix and found that the sources does not include server modules so I won't be able to do it.


  • 0

#2 Daryl McMurray

Daryl McMurray

    Member

  • uniGUI Subscriber
  • PipPip
  • 29 posts
  • LocationOntario, Canada

Posted 13 February 2018 - 06:21 PM

This is easy to do...   

UniApplication.Terminate('GoodBye');  // to put the app in a closed state in the browser

PostThreadMessage(MainThreadID,wm_quit,0,0);  // will tell the main application to terminate 

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users