sShowMessage in thread works twice

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33589
    zhshr
    Participant

    Well, I declared a thread object in my form's unit,and I invoked sShowMessage in the thread. It worked—-but another messagebox of the same properties showed after I clicked 'OK'. I tried synchronize but the result is the same. Another person told me to lock the canvas before calling the procedure, but it shows a skinned mb and a non-skinned mb,the non-skinned mb locked the application and it has no reflect to clicks…..All in all,it is in a mess.
    I want to know how to show a sinned messagebox in a thread normally?
    Thanks.

    #41860
    Support
    Keymaster

    Hello
    Do you have this problem if skins are disabled?
    Could you show a demo how you do that?
    Thanks.

    #41959
    zhshr
    Participant

    sorry,I'm wrong.I called “MyThread:=TMyThread.Create(False);MyThread.Execute;” and it works twice.Sorry for bothering you.

    #41960
    Sereby
    Participant

    thats a wrong usage of threads

    Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.