Was trivial to solve, you are not turning off the full screen mode before shutting the application down, so the upper panels are not painted and the old painting remains. The application is either way really closed, but because you shut down the panels, nothing shows up to cover the old paint.
Just add this to the end of your unit: finalization resetpda(true); And any of the close method ( Self.Close or Application.Terminate) will work properly -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal