When it happens, is it reproducible? Meaning, if you delete the 'fake' functions/methods and delete the body of the newly added method and try again, does it generate the 'fake' methods again?

If yes, is it persistent even after restarting the IDE?

If the answer is yes, again, then you might be able to debug it in TCodeCompletionCodeTool.CreateMissingClassProcBodies unit CodeCompletionTool. There is a define VerboseCreateMissingClassProcBodies that might help.

It's a good tip, will look into that. It's copying empty bodies in all of my units, whatever I'm working on at that moment. But not always. But it does when I have messed with the form. So there must besome correlation. I try to find some kind of default behaviour to be able to reproduce. So far I haven't been able to find that. If you delete and compile it simply works. It's not showstopper but annoying actually.