wangxuebin Posted September 13, 2013 Posted September 13, 2013 Hi,everyone: How to stop an UniGUI Server pragramatically outside the server itself? thanks wxb_km 2013.9.13 Quote
Skepsis IT Posted September 13, 2013 Posted September 13, 2013 Perhaps by killing the process using taskkill. Quote
estrify Posted September 13, 2013 Posted September 13, 2013 One alternative: put a standard timer in the ServerModule to check periodically something, i.e.: a global variable, that you can set through an admin form you might have to adminsitrate your application monitorize the presence of a flag file etc. You also can use a special URL and analyze it (if you do so, use some kind of encription to ensure that the call to stop UniGUI server is really yours). When you decide to stop the server monitoring variable/file/protocol/etc., simply execute Application.Terminate... Hope it helps... Regards, Quote
NelsonFS Posted September 13, 2013 Posted September 13, 2013 Use attached unit to start and stop service by name. Functions_Services_u.rar 1 Quote
wangxuebin Posted September 13, 2013 Author Posted September 13, 2013 thank you! Both of your advices are helpful,as my appliction is a standalone server,so putting a standard timer on the servermodule then checking some stoping flag is good choice. thank again! 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.