sShowMessage with not skin in Thread Root › Technical support › Troubleshooting This topic has 1 reply, 2 voices, and was last updated 11 years, 8 months ago by Support. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts March 3, 2013 at 10:56 am #32770 Rafał DrzewieckiParticipant type TForm1 = class(TForm) sSkinManager: TsSkinManager; sSkinProvider: TsSkinProvider; private public end; type TUpdate = class(TThread) protected procedure Execute; override; end; procedure TUpdate.Execute; begin FreeOnTerminate := True; sMessageDlg('Test','Test', mtInformation, [mbOk], 1); end; procedure TForm1.Button; var Test : TUpdate; begin Test := TUpdate.Create; Test.Resume; end; Why have not skin in the thread? March 3, 2013 at 11:22 am #38392 SupportKeymaster Hello! You should use synchronization : Code: type TUpdate = class(TThread) protected procedure Execute; override; procedure ShowDlg; end; procedure TUpdate.Execute; begin FreeOnTerminate := True; Synchronize(ShowDlg); end; procedure TForm1.sButton1Click(Sender: TObject); var Test : TUpdate; begin Test := TUpdate.Create(True); Test.Resume; end; procedure TUpdate.ShowDlg; begin sMessageDlg('Test','Test', mtInformation, [mbOk], 1); end; Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In Root › Technical support › Troubleshooting