Jump to content
uniGUI Discussion Forums
Sign in to follow this  
Rav

A small feature required

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×