Jump to content

Recommended Posts

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...