<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Delphi and the misplaced breakpoints case.</title>
	<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/</link>
	<description>Cosas de... &#124; Stuff by...  Mario A. Valdez-Ramírez</description>
	<pubDate>Sat, 17 May 2008 09:19:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: 3mp3</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-34</link>
		<author>3mp3</author>
		<pubDate>Tue, 21 Mar 2006 07:41:28 +0000</pubDate>
		<guid>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-34</guid>
					<description>nice to hear you again dude :)</description>
		<content:encoded><![CDATA[<p>nice to hear you again dude <img src='http://www.mariovaldez.net/webapps/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: DelphiCoder</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-38</link>
		<author>DelphiCoder</author>
		<pubDate>Fri, 21 Apr 2006 01:55:43 +0000</pubDate>
		<guid>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-38</guid>
					<description>THANK YOU so much for pointing this out. I was having a very similar problem... Delphi was saying that I had a bad line, but it was 8 lines down from where it was highlighting, which was a BLANK line).  Interestingly, I've never opened my code in anything other than Delphi, but when I went in with a hex editor, I found a bunch of stray carraige returns that were being politely "hidden" by the IDE.  Once I removed those, it was showing the correctly faulty line.</description>
		<content:encoded><![CDATA[<p>THANK YOU so much for pointing this out. I was having a very similar problem&#8230; Delphi was saying that I had a bad line, but it was 8 lines down from where it was highlighting, which was a BLANK line).  Interestingly, I&#8217;ve never opened my code in anything other than Delphi, but when I went in with a hex editor, I found a bunch of stray carraige returns that were being politely &#8220;hidden&#8221; by the IDE.  Once I removed those, it was showing the correctly faulty line.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-40</link>
		<author>Michael</author>
		<pubDate>Mon, 24 Apr 2006 05:29:03 +0000</pubDate>
		<guid>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-40</guid>
					<description>Thanks also for posting this. I also am only using delphi. 6 update 2. and JediVCS. However I have been using this for years. Something has changed.. Maybe a windows xp update? Thanks
Michael</description>
		<content:encoded><![CDATA[<p>Thanks also for posting this. I also am only using delphi. 6 update 2. and JediVCS. However I have been using this for years. Something has changed.. Maybe a windows xp update? Thanks<br />
Michael</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: mvaldez</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-41</link>
		<author>mvaldez</author>
		<pubDate>Mon, 24 Apr 2006 06:55:24 +0000</pubDate>
		<guid>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-41</guid>
					<description>About CR characters appearing spontaneously in the source code, I've read somewhere (I don't have any link) that when the Delphi IDE delete an unused function (for example, a VCL event without content), it may leave some CRs behind. I have not tested that theory as my problem were extra LFs, not CRs.

Also, once I had a similar problem when I compiled a new project which included one unit named like another unit in another project (it was the same unit, I copied it from one project to another). It seems the Delphi IDE was showing me one source code but when building it was using another (already compiled) DCU file. I just renamed one of the units and then it worked. How the old unit ended in the path of my new project? I'm not sure. Maybe I mixed them up when copying one unit from one project to another. But I still think Delphi should detect these things.

Answering Michael question about a Windows update as a possible cause... I don't know. But we should take note that basic VCL functions (for example, string management) can use Windows API functions... maybe a change in them may cause glitches in your source code and in the IDE. But this is a guess; don't take it seriously.

Regards,

Mario A. Valdez-Ramirez.</description>
		<content:encoded><![CDATA[<p>About CR characters appearing spontaneously in the source code, I&#8217;ve read somewhere (I don&#8217;t have any link) that when the Delphi IDE delete an unused function (for example, a VCL event without content), it may leave some CRs behind. I have not tested that theory as my problem were extra LFs, not CRs.</p>
<p>Also, once I had a similar problem when I compiled a new project which included one unit named like another unit in another project (it was the same unit, I copied it from one project to another). It seems the Delphi IDE was showing me one source code but when building it was using another (already compiled) DCU file. I just renamed one of the units and then it worked. How the old unit ended in the path of my new project? I&#8217;m not sure. Maybe I mixed them up when copying one unit from one project to another. But I still think Delphi should detect these things.</p>
<p>Answering Michael question about a Windows update as a possible cause&#8230; I don&#8217;t know. But we should take note that basic VCL functions (for example, string management) can use Windows API functions&#8230; maybe a change in them may cause glitches in your source code and in the IDE. But this is a guess; don&#8217;t take it seriously.</p>
<p>Regards,</p>
<p>Mario A. Valdez-Ramirez.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: mvaldez</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-95</link>
		<author>mvaldez</author>
		<pubDate>Thu, 25 May 2006 08:57:51 +0000</pubDate>
		<guid>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-95</guid>
					<description>The following Borland bug report includes some information about this problem:

Report From: Delphi-BCB/IDE
Report #:  5175  
http://qc.borland.com/wc/qcmain.aspx?d=5175

Description
The IDE gets the focus on the wrong source code line during debugging.
This is either due to
(1) source lines that are separated by other than the standard CF-LF terminators; or
(2) the debugger is confused about which source file is supposed to be synchronized with the execution.
This causes grief for almost every new programmer at least once.
Both causes of the problem should be easy to fix.
Added note: This report may be related to QC#7358. --JohnH, May 13, 2004

Regards,

Mario A. Valdez-Ramirez.</description>
		<content:encoded><![CDATA[<p>The following Borland bug report includes some information about this problem:</p>
<p>Report From: Delphi-BCB/IDE<br />
Report #:  5175<br />
<a href="http://qc.borland.com/wc/qcmain.aspx?d=5175" rel="nofollow">http://qc.borland.com/wc/qcmain.aspx?d=5175</a></p>
<p>Description<br />
The IDE gets the focus on the wrong source code line during debugging.<br />
This is either due to<br />
(1) source lines that are separated by other than the standard CF-LF terminators; or<br />
(2) the debugger is confused about which source file is supposed to be synchronized with the execution.<br />
This causes grief for almost every new programmer at least once.<br />
Both causes of the problem should be easy to fix.<br />
Added note: This report may be related to QC#7358. &#8211;JohnH, May 13, 2004</p>
<p>Regards,</p>
<p>Mario A. Valdez-Ramirez.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Randall</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-1494</link>
		<author>Randall</author>
		<pubDate>Mon, 05 Feb 2007 14:24:30 +0000</pubDate>
		<guid>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-1494</guid>
					<description>This article saved me hours!  I was trying to figure out why my breakpoints were showing up in the most random places.  I opened the pas file in regular Notepad, resaved the file, and presto, the breakpoint problem was fixed!</description>
		<content:encoded><![CDATA[<p>This article saved me hours!  I was trying to figure out why my breakpoints were showing up in the most random places.  I opened the pas file in regular Notepad, resaved the file, and presto, the breakpoint problem was fixed!</p>
]]></content:encoded>
				</item>
</channel>
</rss>
