SteelRat wrote: > OK. So without Critical Section it works on Windows perfectly, but in Wine I get mixed lines, when two threads tries to write text in one time. Are you using SendMessage from different threads? Can you make a small example program demonstrating the issue?