Hi, Can someone check the size of the TPaintStruct structure? My guess is that it is too short, causing BeginPaint to overwrite stack data of other variables leading to garbage. Ie.: what is the size of a boolean in FPC and in WIN32? Thanks, Micha.