RobertoLopes Posted August 8, 2019 Share Posted August 8, 2019 What can cause this ? [192.168.0.21]:EUniSessionException : Sessao invalida ou tempo esgotado : Addr: $00888C77 All my functions and events have try..catch and none is getting any exception. Is there some timeout I need to configure ? What if I do not want the session to timeout ? There is a way to do that ? Link to comment Share on other sites More sharing options...
Sherzod Posted August 8, 2019 Share Posted August 8, 2019 36 minutes ago, RobertoLopes said: What if I do not want the session to timeout ? There is a way to do that ? Use UniMainModule -> OnSessionTimeOut event procedure TUniMainModule.UniGUIMainModuleSessionTimeout(ASession: TObject; var ExtendTimeOut: Integer); begin ExtendTimeOut := 600000; // you can set "your" time in milliseconds end; Link to comment Share on other sites More sharing options...
RobertoLopes Posted August 8, 2019 Author Share Posted August 8, 2019 Yes but the real cause of this error and the node being put on Suspended mode is this ? The timeout ? Suspended mode is something really bad right ? So How can I know the cause ? Link to comment Share on other sites More sharing options...
RobertoLopes Posted August 8, 2019 Author Share Posted August 8, 2019 Our application is "event driven" so we get external socket events to update parts of the screen, get database records, and stuff. Since we cannot update the screen based on socket events we need some sort of timer running with 1s interval all the time. Is there a better way ? I s there a way to make some Javascript code to make the timer local only (without send to the server) ? Link to comment Share on other sites More sharing options...
Recommended Posts