THX for the information Martin, i have changed the line and it looks good. Very good. This code is a prototype for me to inhibt unwanted Ref Counter changes. Am 18.02.2018 um 16:32 schrieb Martin Schreiber via Lazarus: > pointer(FObjectHasInterface):= nil; THX Andreas