Custom Components in Delphi 2007

Delphi 2007 and I had a bit of a tussle this afternoon. I had just finished porting some of my custom controls from Delphi 5 to Delphi 2007 and suddenly Delphi 2007 started crashing immediately after completing a compile. These components have been working without problems for years. What the heck?????

After much diddling around it seems as though Delphi 2007 really doesn’t like combined design / run time packages. Having combined packages was always a bad idea but Delphi 2007 really seems to hate them. After I put all of the design time things (property editors) into a separate design time package and removed them from the run time package everything went back to working just fine.

I had planned to do this anyway because it seems to be impossible to compile an application by hard linking a combined design / run time package into it. This causes all kinds of compile errors when it tries to compile DesginIntf. This is another issue entirely and is the subject of another post.


Leave a Reply