Fred Montier Posted June 14, 2021 Share Posted June 14, 2021 Hi there 1- Make a better context menu to StandAlone with more resources. I've done that. 2- Simple shutdown as it is done in the project model for standalone. Can't figure it out ! I know that writing ExitProcess(0); at any internal form can do that but I want to put in the VCL control using the standalone, hence, the problem. Is not to the user terminate but for me in the development process the same way is done in Intraweb StandAlone that is very useful like the image below. 1 Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted June 15, 2021 Author Share Posted June 15, 2021 No one can help ? 😞 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 15, 2021 Share Posted June 15, 2021 1 hour ago, Fred Montier said: No one can help ? Hello, You seem to have done something, right? And what doesn't work? Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted June 15, 2021 Author Share Posted June 15, 2021 I know I can terminate with ExitProcess(0); in the mainform. I just want to have the same resource of right-click shutdown a standalone at the traybar via pop-up menu. Ist just to termine, the standalone in a local host the same way you guy termine in the project StandLone model. But could not find the proper way. So, how is a standalone is terminated via the popmenu option ? What command or configuration ? http://localhost:8077/action=terminate wont´t work either. Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted June 15, 2021 Author Share Posted June 15, 2021 I want to personalize my own pop-up menu to standalones. And the ONLY option missing is proper shutdown. I can stop the server, resume etc... it should be very simple but found no documentation on subject Quote Link to comment Share on other sites More sharing options...
estrify Posted June 17, 2021 Share Posted June 17, 2021 Hello, I don't know if this can help you: I use UniServerInstance.TerminateStandAlone(); Always called from ServerModule. One question: Do you hack the existing tryicon to include your options or create a completely new one? Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted August 11, 2021 Author Share Posted August 11, 2021 Are you sure this works ? On 6/17/2021 at 6:00 AM, estrify said: Hello, I don't know if this can help you: I use UniServerInstance.TerminateStandAlone(); Always called from ServerModule. One question: Do you hack the existing tryicon to include your options or create a completely new one? And yes: remove and create a complete tryicon using vcl native component. Quote Link to comment Share on other sites More sharing options...
estrify Posted August 16, 2021 Share Posted August 16, 2021 Sorry if I didn't understand you correctly. Usually I shutdown the server via the tryicon "Shutdown" option. Other stop procedures are only reserved for errors during the startup of the server. Keeping this in mind, "UniServerInstance.TerminateStandAlone()" works to get out securily of server startup errors (address/port in use, configuration errors, etc.) inside "UniGUIServerModuleException" and "UniGUIServerModuleServerStartup" procedures. I believe that "Halt" or "ExitProcess" are abnormal exit procedures, so they should be used with care. To stop the server via command, in fact "ExitProcedure" is what I do but just in case making sure to previously close all sessions and all backend threads that were active on the server. Due to those threads, if you have them, make sure none of them are still running before "ExitProcedure". One question: how do you remove UniGUI's tryicon? 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.