Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!

FreeAndNil() – Delphi Developer Debate


You are familiar with FreeAndNil(), but do you use it? How often? Are you using it right? As with most things in software development, it is a complicated topic. So let’s see what the experts have to say. We are going to debate the details in a friendly discussion with some of your favorite MVPs.

  • Webinar details:
  • This blog post will include the replay, slides, and more after the webinar.

The Survey Says…

When you register for the webinar we’ve included a short survey to see where you stand on the issue. During the webinar we will compare the general consensus with that of our MVP panel of experts.

Even more MVPs have weighed in on the topic and I have some teasers for how they voted…

  • Dalija Prasnikar
  • Uwe Raabe
  • Paul TOTH
  • Radek Cervinka
  • Dr. Holger Flick
  • Patrick Prémartin
  • Boian Mitov
  • Matthew Vesperman
  • Vinicius Sanchez
  • Darian Miller
  • Juliomar Marchetti
  • Erik van Bilsen
  • Allen Bauer
  • Nick Hodges
  • Daniele Teti
  • Ziad Allaghi
  • Thomas Theobald
  • Iwan Cahyadi Sugeng
  • Bob Swart
  • Carlos Reyes
  • Nirav Kaku
  • Bernd Ua
  • Germán Estévez
  • Andrea Magni
  • Xavier “cadetill” Martinez Garsaball
  • François Piette
  • Filip Lagrou
  • Same Assil
  • Stéphane Vander Clock
  • Bruno Fierens
  • Frank Lauter
  • Marcos “Mantmor” Antonio Moreira
  • Olaf Monien
  • David Cornelius
  • Carlos Villarruel
  • Didier Cabalé
  • Jhonny Suárez
  • Bruce McGee

I’ve left the legend of that the charts mean off for now, you need to join the webinar to see the details, but the use of FreeAndNil() is pretty evenly split if we lump the responses into generalities for for and against.

Use of FreeAndNil() by MVPs

If we break things down into details though it is a little bit more nuanced. Again, without the legend, yet.

Detailed Use of FreeAndNil() by MVPs

Making assigned checks is similar, but a little more pronounced differences.

Use of Assigned() by MVPs
Detailed Use of Assigned() by MVPs

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

Chief Developer Advocate for Embarcadero Technologies.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.