Re: Problem freeing components with .free



TeChNoInSiDe wrote:

RemoveComponent() didn't work for my program because the owner of
components was nil

One more bug that you introduce yourself :-(

Could you explain please?

IMO you should learn to use components properly, before you try to abuse them in your own way. Have you ever had a look into the sample applications, provided with your Delphi version?

Every component on a form should have an owner, in order to keep the management of the form working.

DoDi
.