views:

373

answers:

3

Hello when I open concrete projects the error insight mark with red lines incorrect areas of the screen. Also when I compile It, error messages are shown, but the line number displayed in the message window points to a wrong line in the code window. When I double click over a error message the ide goes to another line. how do i correct this problem?

Regards,

Francis

+2  A: 

Francis--

It is very likely that your files have some issues with their line endings.

Has the file ever been opened in another editor besides Delphi?

You can check this way: Copy all of the code onto the clipboard, paste it into Notepad, copy it all out of notepad, and then paste it back into the editor. That should clean up all the line endings. See if that makes a difference.

Nick Hodges
Work fine with any editor except notepad. The problem appear after copying and pasting from an old winhelp file.Thanks
Francis Lee
I usually find it easier to close the file in the IDE's editor window, open it with an external text editor (not Notepad - I've been told that won't fix mismatched CR/LF pairs) like Notepad++ or WordPad, make a nonsense change like adding and then removing a blank line, and then saving the file. Opening it again in the IDE works fine afterwards.
Ken White
+1  A: 

Turn off error insight. First thing I do after installing. Then fix the line endings as noted earlier.

frogb
Not sure if this is necessary for D2010, but D2006 is a LOT more stable with error insight turned off.
Gerry
Thank you for your response, but I like error insight and this is the first time I get this error. Delphi 2010 is really really stable.
Francis Lee
So do I (sometimes), but it makes D2006 behave badly - huge memory leaks if code is not compilable.
Gerry
A: 

Great! This solved a LOT of headaches for me, thanks for everyone posting!

Ken