Delphi.Net Bug

I tripped across a bug in Delphi.Net today. Apparently static array members of classes descended from TPersistent and TComponent will not be created unless the descendant class has a constructor. The constructor doesn’t have to do anything but call the inherited constructor, but it must exist.

Many thanks to Marc Rohloff of TeamB who told me about this bug. I might never have figured it out without his help.

Leave a Reply