wangxuebin Posted September 13, 2013 Share Posted September 13, 2013 Hi,everyone: How to stop an UniGUI Server pragramatically outside the server itself? thanks wxb_km 2013.9.13 Link to comment Share on other sites More sharing options...
Skepsis IT Posted September 13, 2013 Share Posted September 13, 2013 Perhaps by killing the process using taskkill. Link to comment Share on other sites More sharing options...
estrify Posted September 13, 2013 Share 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, Link to comment Share on other sites More sharing options...
NelsonFS Posted September 13, 2013 Share Posted September 13, 2013 Use attached unit to start and stop service by name. Functions_Services_u.rar 1 Link to comment Share on other sites More sharing options...
wangxuebin Posted September 13, 2013 Author Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now