views:

124

answers:

3

I have noticed that with Delphi 2009, I often get strange errors when compiling, such as recursive unit use, and sometimes just (seemingly) random errors which point to white space at the end of a unit.

These are not really errors, because a full build will fix any of the problems, and I can carry on. I suspect that generics have something to do with this. Now a Delphi build is very fast, but this is still frustrating. Delphi 2006 and Delphi 2007 did not do this, but then they didn't have generics.

A: 

Without the errors, etc it's going to be really hard to have an answer for this. You might want to contact product support for Delphi.

I don't know who owns that product anymore otherwise I'd give you a link.

Chris Lively
It's owned by CodeGear, a subsidiary of Embarcadero; they're to be found at http://www.codegear.com/
Ken White
I don't think CodeGear is a subsidiary of Embarcadero. Embarcadero bought the CodeGear company spun out of Borland, but now CodeGear as a name and a brand appears to have been quietly dropped as of the Delphi 2010 release. There is no mention of "CodeGear" anywhere prominently in the product and it even installs under an Embarcadero identity as far as Program Files and Registry keys etc go. CodeGear was good. While it lasted.
Deltics
+1  A: 

Hard to tell without more details, but I would suspect some kind of confusion in one of the paths the compiler relies on to find the pas/dcus. Depending what has to be compiled, the order of the units found is not the same, or even the units are not necessary the good ones.

Do you have any modified Delphi unit?
Do you have a separate folder for the dcus?
Do you mix the source and compiled units folders in the paths?

François
I don't have any modified delphi units, but your second and third suggestion may be going in the right direction..
Steve
I haven't actually found the problem yet, but I'm 99.9% sure you are correct, so I'm accepting the answer, and will go look for those paths
Steve
A: 

Did you install all updates?

Marco van de Voort
all updates have been installed.
Steve