Ah, it seems the problem is even in {$mode delphi} you must use {$modeswitch typehelpers} to define a type helper for an interface. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220827/4b0c43f5/attachment.htm>