I applied the patch from here: https://bugs.freepascal.org/view.php?id=32974 It looks good to me. Please test everybody. Does it have negative side-effects of some kind? Juha