jlmontes@rauroszm.com Posted January 29, 2018 Share Posted January 29, 2018 Hello, I want use OmniThreadLibrary in UNIGUI, but I don't get it working, this simple code never execute Await, if this code run in windows application it works fine. procedure TMainForm.UniButton1Click(Sender: TObject); begin Async( procedure begin Sleep(2000); end). Await( procedure begin showMessage('End'); end); end; someone is using OmniThreadLibrary ??? Thanks Quote Link to comment Share on other sites More sharing options...
jlmontes@rauroszm.com Posted January 30, 2018 Author Share Posted January 30, 2018 Hello, ¿Some idea? thanks Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted January 30, 2018 Share Posted January 30, 2018 Hi Within Async methods do you reference any visual object? I use, however I do not reference visual objects of uniGUI: TThread.CreateAnonymousThread( procedure() begin end).Start; 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.