verisu Posted June 7, 2011 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 7, 2011 Administrators Share Posted June 7, 2011 Do you want to restart server from Web interface? Quote Link to comment Share on other sites More sharing options...
verisu Posted June 7, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 7, 2011 Administrators Share 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 Link to comment Share on other sites More sharing options...
verisu Posted June 7, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
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.