I found where was a problem... So, now I can say - do not use CreateThread when you use FreePascal 2.4.x and later. Maybe in future releases there will be a fix, but for now better way to use BeginThread.