Board index » delphi » IDE jumps to wrong line

IDE jumps to wrong line


2003-12-23 03:16:56 AM
delphi195
Since upgrading to Delphi 7, I find the IDE keeps jumping to the wrong line.
For example, jumping to an error always takes me to a few lines above the
real line, and stepping through the de{*word*81} has the same effect (that is,
it highlights the wrong line). Has anyone else seen this and know a
solution?
Thanks.
-Stuart
 
 

Re:IDE jumps to wrong line

It might be spurious line terminators in your source code ... if you look at
your .pas file in notepad you might see cr/lf characters (notepad displays
them as little outlined squares). Delphi accepts them without problem until
you try to debug and then it gets confused !
Andrew
"Stuart Booth" <XXXX@XXXXX.COM>writes
Quote
Since upgrading to Delphi 7, I find the IDE keeps jumping to the wrong
line.
For example, jumping to an error always takes me to a few lines above the
real line, and stepping through the de{*word*81} has the same effect (that is,
it highlights the wrong line). Has anyone else seen this and know a
solution?

Thanks.
-Stuart


 

Re:IDE jumps to wrong line

That was it. Thanks, Andrew! It turned out that I did have some of these,
and even the ones in comments threw it off, too.
-Stuart
"Andrew Jameson" <XXXX@XXXXX.COM>writes
Quote
It might be spurious line terminators in your source code ... if you look
at
your .pas file in notepad you might see cr/lf characters (notepad displays
them as little outlined squares). Delphi accepts them without problem
until
you try to debug and then it gets confused !

Andrew

"Stuart Booth" <XXXX@XXXXX.COM>writes
news:3fe741e6$XXXX@XXXXX.COM...
>Since upgrading to Delphi 7, I find the IDE keeps jumping to the wrong
line.
>For example, jumping to an error always takes me to a few lines above
the
>real line, and stepping through the de{*word*81} has the same effect (that
is,
>it highlights the wrong line). Has anyone else seen this and know a
>solution?
>
>Thanks.
>-Stuart
>
>