Your screenshot looks like XP. I tried your demo on my XP virtual machine, and yes, I see the error now. The Lazarus on that VM is version 1.6. Then I tried your demo with Laz 1.6 on my normal Win10 machine --> no problem. So, I guess, the issue that you see is mostly related to the OS.