Check your path. It maybe picking up a compiled unit from a different path. I almost went nuts with a problem like this a while back. Sigh. In my case the compiler was picking up a .dcu of the same unit in my current project because the path was first in the list.