We have recently upgraded a massive application from Delphi 7 to Delphi 2009.
Sometimes Ctrl+Click in the IDE editor does not take you to the correct line where the definition (of what you clicked on) is declared. BUT it does open up the file and puts the cursor at the end of the file.
I tried Build All but that didn't work.
Hah - I just went File Close All and restarted Delphi and then re-opened my project and it worked.
Hmm I think I might have edited the code that I clicked on whilst debugging the application. I certainly didn't edit the file that contained the definition. I will keep an eye on this in future to see if that was it. Actually what I did should not have caused this behaviour (at least based on my extensive Delphi 7 experiences).
Still this is odd behaviour isn't it? I mean the identity was highlighted as I put the mouse over it AND when Ctrl+clicking it took m to the right file Bu just the wrong place.
Points go to anyone who can shed some light on this subject (even though I sort of answered it). Is this a bug? Shoudl I report it to embacadero?
Actually better still - let me know if anyone else has experienced similar behaviour.
FYI I found one here...