verisu Posted June 7, 2011 Posted June 7, 2011 Hi Farshad, In the older version of uniGui i was using something like this function for restarting the "Stand Alone Server". function RestApp: Boolean; var FullProgPath: PAnsiChar; begin FullProgPath := PAnsIChar(Application.ExeName); WinExec(FullProgPath, SW_SHOW); Application.Terminate; Result := True; end; Now i'm trying to shutdown the engine and no luck. Do you have a trick or am i missing something. Thank you for your answer. Verisu. Quote
Administrators Farshad Mohajeri Posted June 7, 2011 Administrators Posted June 7, 2011 Do you want to restart server from Web interface? Quote
verisu Posted June 7, 2011 Author Posted June 7, 2011 Yes. But your question suggests its not possible. I looked on my older project and i saw that i was using a normal form before running uniGui form. Other way is it not possible? Quote
Administrators Farshad Mohajeri Posted June 7, 2011 Administrators Posted June 7, 2011 Restarting a "live server" can be a complex task. There can many active requests at the time you want to restart it. Such a task should be implemented internally using methods that are directly coupled with server engine. I log an issue for it: #1024 Quote
verisu Posted June 7, 2011 Author Posted June 7, 2011 Thank you Farshad. Only for explanation why i need it. Its for a configuration windows of the engine and database like ado or mysql. By pushing the "save" button the server save the config to registry or file and restart it self. Be ruining its detect that there is configuration and use it. 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.