Abaksoft Posted May 26, 2020 Share Posted May 26, 2020 Hello, Why UniThreadTimer1 (From ServerModule) raises AV Exception when calling UniMainModule ? procedure TUniServerModule.UniThreadTimer1Timer(Sender: TObject); begin UniThreadTimer1.Lock; try //============== // Why ? MainModule.UniMainModule.DoSomething1; //=> AV Exception ! // And this = OK // MainModule.DoSomething2; //============== finally UniThreadTimer1.Release; end; end; Thx UniThreadTimer.7z Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted May 26, 2020 Author Share Posted May 26, 2020 Oh...., I understand Now. ServerModule, no acces UniMainModule procedure as MainModule is a Session ! Sorry for the question. Quote Link to comment Share on other sites More sharing options...
Tokay Posted May 26, 2020 Share Posted May 26, 2020 Fix 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.