Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler error on wrong line

Status
Not open for further replies.

StuL87

Technical User
Feb 27, 2006
2
GB
Hi everyone.

I've just spent the best part of two hours trying to solve this problem without joy. When I compile my project which has an error in it, the compiler highlights the wrong line. The same goes for when I use breakpoints - they do not apply to the line that I have selected. For example, if I were to highlight the line if filesize > 0 then......, the compiler would highlight a different line (about 3 lines above the "proper" line (which may actually be a comment!).

I have tried to copy all of my units into Notepad and then back into Delphi in order to clear up any loose line breaks/carriage returns but to no avail. I've also tried Building the project but that has had no effect either. Basically any advice that has been given pertaining to this problem on the internet I've tried!

I'm using Delphi 7 on Windows XP Pro. I have also used Delphi 5 on a friend's computer at times which also runs Windows XP Pro. However, until now, I haven't had this problem.

I have uploaded my project to in case any kind soul can spare some time to have a look at it and see what I'm missing!

Any help you can offer will be much appreciated! What a bad time for Delphi to fail me! This project should have been completed two weeks ago!!

Thank you very much in advance.
 
Are you using LeadTools? We have issues with correct line numbering when using this add in. Have you installed any other "new" components?
 
Hi lespaul

I finally managed to fix it this evening by painstakingly going through 1600 lines of code and finding out where Delphi was getting confused with what was a new line and what wasn't.

I have installed other components - Raize components they're called but they weren't the cause of this problem!

Thank you for your reply [smile]
 
I have seen this from time to time, as you say its more often than not due to a missing EOL marker 'somewhere' in the code, and it can be a real pain to find.
Unless anyone knows of a simple method?


Steve: Delphi a feersum engin indeed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top