I'm so sorry. Yes, you are right, I simplified it too much. And yes, it is working, if I'm doing it right.
My fault was, that the original code had
and TClass obviously has no "constructor Create; virtual"...
I have to check my old Delphi code, from where I migrated that whole unit. But maybe I changed to much...
Thanks for bringing me back on line.