delagoutte Posted December 4, 2018 Share Posted December 4, 2018 Hello, i have a grid with a onselectionchange in this event i have a code like this procedure TMainForm.MygridSelectionChange(Sender: TObject); begin MyFrame.LoadData; end; I would like to know what it is the best method to be certain that I do not enter many times in parallel in this portion of code Loaddata. What is the good method for be sure TCriticalsession unisession.locksession , ... other ? If i use TCriticalSection, i think that i have this portion of code that will be locked/protected for all session but i would protect it only for the usersession. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 5, 2018 Administrators Share Posted December 5, 2018 uniGUI governs that a session will not run events in parallel. All the events for the same session will be executed one after another. Quote Link to comment Share on other sites More sharing options...
delagoutte Posted December 6, 2018 Author Share Posted December 6, 2018 ok thanks for your answer 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.