OdontonetEs Posted February 18 Posted February 18 Hi, would it be possible to execute a method of the TuniMainModule class for all active session from the TServerModule class? It would be something like this: for j:=ServerModule.SessionManager.Sessions.SessionList.Count-1 downto 0 do begin Sesion := ServerModule.SessionManager.Sessions.SessionList[j]; if Sesion.UniMainModule <> nil then (Sesion.UniMainModule As TMainModule).exceuteProcedure; end; end; I have tried to test it but I get an access violation error when executing the procedure Thanks Quote
OdontonetEs Posted February 19 Author Posted February 19 Thanks for the answer. When I run the demo that comes with the UNIGUI installation it works, but in my project it doesn't work well. I use hyper server on linux, I don't know if I need any special configuration. Quote
OdontonetEs Posted February 19 Author Posted February 19 I have thoroughly reviewed the online documentation and have managed to get it working. Regards 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.