Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

FreeAndNil() – Delphi Developer Debate

delphi developer debate freeandnil 2

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.

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…

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.

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

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

Exit mobile version