Solved

Creating & freeing question

Posted on 1999-01-04
1
130 Views
Last Modified: 2010-04-04
I am creating a panel at design time and then on that panel I am creating labels and edit boxes. All of the labels and edit boxes have the panel as a parent.

Anyway, my question is: when I come to close the form, I am calling Free for the panel but not for its child components. Is this OK or am I wasting the resources used by these components? Do I need to free each of them in turn or can I just free the panel and its children will be dealt with?
0
Comment
Question by:jsweby
1 Comment
 
LVL 20

Accepted Solution

by:
Madshi earned 50 total points
ID: 1354431
Hi jsweby,

this is an extract from my help file. You'll find the same text in English if you type "free" in your delphi editor and press F1.
"Wenn Sie Free für eine Komponente aufrufen, werden alle untergeordneten Objekte (die Einträge in ihrer Komponentenliste) automatisch freigegeben."

In other words: All child components will be freed automatically; it's absolutely right to free only the parent component...   :-)

Regards, Madshi.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
calling procedure inside activexForm from secondform 1 232
Delphi XE10 Round Image 2 79
Show Listview image from database (String field) 5 114
Dev Express grid collapse 2 39
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now