<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Delphi and the misplaced breakpoints case.</title>
	<atom:link href="http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/feed/" rel="self" type="application/rss+xml" />
	<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>
	<lastBuildDate>Sun, 08 Jan 2012 04:39:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Phil Brook</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/comment-page-1/#comment-33317</link>
		<dc:creator>Phil Brook</dc:creator>
		<pubDate>Fri, 27 May 2011 15:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/#comment-33317</guid>
		<description>Thank you, sir!  My random breakpoints resolved now too!</description>
		<content:encoded><![CDATA[<p>Thank you, sir!  My random breakpoints resolved now too!</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-page-1/#comment-1494</link>
		<dc:creator>Randall</dc:creator>
		<pubDate>Mon, 05 Feb 2007 14:24:30 +0000</pubDate>
		<guid isPermaLink="false">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>
	<item>
		<title>By: mvaldez</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/comment-page-1/#comment-95</link>
		<dc:creator>mvaldez</dc:creator>
		<pubDate>Thu, 25 May 2006 08:57:51 +0000</pubDate>
		<guid isPermaLink="false">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: mvaldez</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/comment-page-1/#comment-41</link>
		<dc:creator>mvaldez</dc:creator>
		<pubDate>Mon, 24 Apr 2006 06:55:24 +0000</pubDate>
		<guid isPermaLink="false">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&#039;ve read somewhere (I don&#039;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&#039;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&#039;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&#039;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: Michael</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/comment-page-1/#comment-40</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 24 Apr 2006 05:29:03 +0000</pubDate>
		<guid isPermaLink="false">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: DelphiCoder</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/comment-page-1/#comment-38</link>
		<dc:creator>DelphiCoder</dc:creator>
		<pubDate>Fri, 21 Apr 2006 01:55:43 +0000</pubDate>
		<guid isPermaLink="false">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&#039;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 &quot;hidden&quot; 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: 3mp3</title>
		<link>http://www.mariovaldez.net/webapps/blog/2006/02/25/delphi-and-the-misplaced-breakpoints-case/comment-page-1/#comment-34</link>
		<dc:creator>3mp3</dc:creator>
		<pubDate>Tue, 21 Mar 2006 07:41:28 +0000</pubDate>
		<guid isPermaLink="false">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 :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

