Thanks, I know it. But why the SendMessage function in MSWindows doesn't cause hangup of the program, and in Linux such problem is available?

p.s. In one of my projects in additional thread the splash-window is caused. In this thread I use SendMessage for sending of messages to a splash-window. Everything works at windows correctly, in Linux the splash-window isn't closed even after completion of thread.
The project is big. Therefore I try to make a test project to reproduce a problem.
Why use SendMessage/PostMessage in the first place?
I got used to use these methods
