That fixes it, but then the question is why does {$mode delphi} differ from {$mode objfpc}? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190603/6e7a762d/attachment.html>