<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/wordpress-mu-1.2.3-2.2.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Fredrik Haglund</title>
	<link>http://blogs.codegear.com/fhaglund</link>
	<description>Regional Developer Evangelist</description>
	<pubDate>Thu, 17 Jan 2008 22:03:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=wordpress-mu-1.2.3-2.2.1</generator>
	<language>en-US</language>
			<item>
		<title>Migrate an old Kylix project to Delphi 2007</title>
		<link>http://blogs.codegear.com/fhaglund/2007/09/06/38759</link>
		<comments>http://blogs.codegear.com/fhaglund/2007/09/06/38759#comments</comments>
		<pubDate>Thu, 06 Sep 2007 12:48:19 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2007/09/06/37554/</guid>
		<description><![CDATA[I got a question today how to migrate an old Kylix project to Delphi 2007 and here is what I answered. None of our current products support the CLX-framework any more for legal reasons (CodeGear does not have a license from Trolltech on Qt library). It is possible to manually convert a Kylix project to [...]]]></description>
			<content:encoded><![CDATA[<p>I got a question today how to migrate an old Kylix project to Delphi 2007 and here is what I answered. None of our current products support the CLX-framework any more for legal reasons (CodeGear does not have a license from Trolltech on Qt library). It is possible to manually convert a Kylix project to an ordinary Delphi project very easily, though. Here is a simplified description of the approach:
<ul>
<li>You need to rename the units in the uses clause in all pas-files. Usually you only need to remove the Q infront of the unit name.</li>
<li>For forms you need to change the extension of the xfm file to dfm. Change the $R directive in the pas-file to include the dfm file instead.</li>
<li>Properties should be 99% compatible with current version. Open each converted form in Delphi to verify this. If there is any problem, click ignore and make a note so you can investigate if it demands any adjustments.</li>
</ul>
<p> <strong>If you have more tips and trix, <a title="Go to Fredriks new blog" href="http://blog.fredrikhaglund.se/2007/09/06/migrate-an-old-kylix-project-to-delphi-2007/">drop a comment in my new blog at blog.fredrikhaglund.se</a></strong></p>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=38759&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_38759" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=Migrate%20an%20old%20Kylix%20project%20to%20Delphi%202007&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2007%2F09%2F06%2F38759" id="akst_email_38759" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2007/09/06/38759/feed</wfw:commentRss>
		</item>
		<item>
		<title>Vista Enable Your Applications</title>
		<link>http://blogs.codegear.com/fhaglund/2007/07/18/37553</link>
		<comments>http://blogs.codegear.com/fhaglund/2007/07/18/37553#comments</comments>
		<pubDate>Wed, 18 Jul 2007 17:03:10 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2007/07/18/35730/</guid>
		<description><![CDATA[(Moved to new blog&#8230;)
]]></description>
			<content:encoded><![CDATA[<h2>(<a href="http://blog.fredrikhaglund.se/blog/2007/07/18/vista-enable-your-applications/">Moved to new blog&#8230;</a>)</h2>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=37553&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_37553" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=Vista%20Enable%20Your%20Applications&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2007%2F07%2F18%2F37553" id="akst_email_37553" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2007/07/18/37553/feed</wfw:commentRss>
		</item>
		<item>
		<title>UAC and Signed Applications</title>
		<link>http://blogs.codegear.com/fhaglund/2007/06/08/35729</link>
		<comments>http://blogs.codegear.com/fhaglund/2007/06/08/35729#comments</comments>
		<pubDate>Fri, 08 Jun 2007 15:03:45 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2007/06/08/34490/</guid>
		<description><![CDATA[(Moved to new blog&#8230;)
]]></description>
			<content:encoded><![CDATA[<h2>(<a href="http://blog.fredrikhaglund.se/blog/2007/06/08/uac-and-signed-applications/">Moved to new blog&#8230;</a>)</h2>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=35729&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_35729" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=UAC%20and%20Signed%20Applications&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2007%2F06%2F08%2F35729" id="akst_email_35729" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2007/06/08/35729/feed</wfw:commentRss>
		</item>
		<item>
		<title>More about BDE</title>
		<link>http://blogs.codegear.com/fhaglund/2007/05/12/34489</link>
		<comments>http://blogs.codegear.com/fhaglund/2007/05/12/34489#comments</comments>
		<pubDate>Sat, 12 May 2007 17:41:06 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2007/05/12/34460/</guid>
		<description><![CDATA[(Moved to new blog&#8230;)
]]></description>
			<content:encoded><![CDATA[<h2>(<a href="http://blog.fredrikhaglund.se/blog/2007/05/12/more-about-bde/">Moved to new blog&#8230;</a>)</h2>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=34489&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_34489" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=More%20about%20BDE&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2007%2F05%2F12%2F34489" id="akst_email_34489" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2007/05/12/34489/feed</wfw:commentRss>
		</item>
		<item>
		<title>Small questions</title>
		<link>http://blogs.codegear.com/fhaglund/2007/05/09/34459</link>
		<comments>http://blogs.codegear.com/fhaglund/2007/05/09/34459#comments</comments>
		<pubDate>Wed, 09 May 2007 17:59:40 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2007/05/09/33208/</guid>
		<description><![CDATA[(Moved to new blog&#8230;)
]]></description>
			<content:encoded><![CDATA[<h2>(<a href="http://blog.fredrikhaglund.se/blog/2007/05/09/small-questions/">Moved to new blog&#8230;</a>)</h2>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=34459&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_34459" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=Small%20questions&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2007%2F05%2F09%2F34459" id="akst_email_34459" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2007/05/09/34459/feed</wfw:commentRss>
		</item>
		<item>
		<title>Vista User Account Control and Command Line Applications</title>
		<link>http://blogs.codegear.com/fhaglund/2007/03/19/33207</link>
		<comments>http://blogs.codegear.com/fhaglund/2007/03/19/33207#comments</comments>
		<pubDate>Mon, 19 Mar 2007 01:57:27 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2007/03/19/32265/</guid>
		<description><![CDATA[(Moved to new blog&#8230;)
]]></description>
			<content:encoded><![CDATA[<h2>(<a href="http://blog.fredrikhaglund.se/blog/2007/03/19/vista-user-account-control-and-command-line-applications/">Moved to new blog&#8230;</a>)</h2>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=33207&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_33207" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=Vista%20User%20Account%20Control%20and%20Command%20Line%20Applications&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2007%2F03%2F19%2F33207" id="akst_email_33207" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2007/03/19/33207/feed</wfw:commentRss>
		</item>
		<item>
		<title>Friday</title>
		<link>http://blogs.codegear.com/fhaglund/2006/11/24/29831</link>
		<comments>http://blogs.codegear.com/fhaglund/2006/11/24/29831#comments</comments>
		<pubDate>Fri, 24 Nov 2006 18:34:01 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2006/11/24/27651/</guid>
		<description><![CDATA[I have been teaching Delphi in Linkoping, Sweden this week. Even if you know your topic it requires constant concentration and it is exhausting but fun.
This week, a colleague of mine attended the Java User Group meetings in Stockholm and Gothenburg (together with 350 Java developers) and talked about JBuilder 2007. Most seem to have [...]]]></description>
			<content:encoded><![CDATA[<p><span style='font-size:10.0pt;font-family:Verdana'>I have been teaching Delphi in Linkoping, Sweden this week. Even if you know your topic it requires constant concentration and it is exhausting but fun.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>This week, a colleague of mine attended the Java User Group meetings in Stockholm and Gothenburg (together with 350 Java developers) and talked about JBuilder 2007. Most seem to have the understanding that we have been knocked-out but are happy to see us up and running again with new innovations in the Java area and a good well founded support for our Eclipse strategy. All developers that we have spoken to are courious about JB2007 and most understand the needs we address in the product and they way we are doing it. All find Eclipse to be a hassle to configure but really appreciate the open api&#8217;s and flexibility, from that perspective all buy into what we are doing with JBuilder.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>It is nice to have a company name again and at December 13th we (the eight CodeGear guys in Stockholm) move to our new office in <a href="http://www.solnabusinesspark.se/">Solna Business Park</a>.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>There are a lot of Delphi activities in Scandinavia the following weeks.</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>Delphi</span></b><b><span style='font-size:10.0pt;font-family:Verdana'> Migration Seminar and Workshop</span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>For Delphi developers that want help to upgrade their projects from Delphi 5, 6, 7 to Delphi 2006 or want to learn more about what they have to do to adapt their applications to Windows Vista.</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'><a href="http://www.ravenholm.dk/Software/Seminars/SeminarsInfo.asp?id=55"><span style='font-weight:normal'>Copenhagen, December 7th</span></a></span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'><a href="http://www.pc-ware.se/Software/Seminars/SeminarsInfo.asp?id=24">Gothenburg, December 8th</a></span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'><a href="http://www.moonsoft.fi/customerservice/delphivista.aspx">Helsinki, December 11th</a></span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'><a href="http://www.pc-ware.se/Software/Seminars/SeminarsInfo.asp?id=24">Stockholm, December 12th</a></span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>Delphi Day in Oslo</span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>There are also plans for a one day seminar in Oslo at December 15th. More details are coming about this&#8230;</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>Have a look at <a href="http://jedicodeformat.sourceforge.net/">Jedi Code Format</a></span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>A very useful little tool if you are running into a project that has all text in uppercase and no indenting. I love it! I just had to tell you about it if you missed it.</span></p>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=29831&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_29831" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=Friday%20&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2006%2F11%2F24%2F29831" id="akst_email_29831" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2006/11/24/29831/feed</wfw:commentRss>
		</item>
		<item>
		<title>Looking for a new Job?</title>
		<link>http://blogs.codegear.com/fhaglund/2006/09/23/27650</link>
		<comments>http://blogs.codegear.com/fhaglund/2006/09/23/27650#comments</comments>
		<pubDate>Sat, 23 Sep 2006 23:13:45 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2006/09/23/27550/</guid>
		<description><![CDATA[I noticed that Skype is searching for a new Delphi programmer doing UI Development for Windows. Interesting if you happens to live in Estonia!
You do not have so many options good options today if you want to develop native applications (and with native I mean not a managed .NET application). I guess the main candidates [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed that Skype is searching for a new <a href="http://jobs.skype.com/2006/07/ui_developer_for_windows.html">Delphi programmer doing UI Development for Windows</a>. Interesting if you happens to live in Estonia!</p>
<p>You do not have so many options good options today if you want to develop native applications (and with native I mean not a managed .NET application). I guess the main candidates are Delphi, C++Builder, VB6 and possible C++ if you like MFC. Correct me if I&#8217;m wrong&#8230;</p>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=27650&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_27650" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=Looking%20for%20a%20new%20Job%3F&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2006%2F09%2F23%2F27650" id="akst_email_27650" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2006/09/23/27650/feed</wfw:commentRss>
		</item>
		<item>
		<title>User group meeting in Stockholm</title>
		<link>http://blogs.codegear.com/fhaglund/2006/09/15/27549</link>
		<comments>http://blogs.codegear.com/fhaglund/2006/09/15/27549#comments</comments>
		<pubDate>Fri, 15 Sep 2006 18:16:25 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2006/09/15/27303/</guid>
		<description><![CDATA[  

Yesterday evening I attended a Delphi user group meeting in Stockholm, Sweden.
&#160;
Memory Manager
I spoke very shortly about the change of Memory Manager in Delphi 2006. Except for the IDE, the new memory manager only affects Delphi and C++ applications compiled to native code (i.e. Win 32) not .Net applications.
&#160;
    function [...]]]></description>
			<content:encoded><![CDATA[<style> <!--  /* Font Definimgitions */  @font-face 	{font-family:Verdana; 	panose-1:2 11 6 4 3 5 4 4 2 4;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{margin:0cm; 	margin-bottom:.0001pt; 	font-size:12.0pt; 	font-family:"Times New Roman";} a:link, span.MsoHyperlink 	{color:blue; 	text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed 	{color:purple; 	text-decoration:underline;} code 	{font-family:"Courier New";} @page Section1 	{size:595.3pt 841.9pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 	{page:Section1;} --> </style>
<div class="Section1">
<p><span style='font-size:10.0pt;font-family:Verdana'>Yesterday evening I attended a <a href="http://delphi.meetup.com/172/">Delphi user group meeting in Stockholm, Sweden</a>.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>Memory Manager</span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>I spoke very shortly about the change of Memory Manager in Delphi 2006. Except for the IDE, the new memory manager only affects Delphi and C++ applications compiled to native code (i.e. Win 32) not .Net applications.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><code><span style='font-size:10.0pt'>    <b>function</b> GetMem(Size: Integer): Pointer;</span></code></p>
<p><code><span style='font-size:10.0pt'>    <b>function</b> FreeMem(P: Pointer): Integer;</span></code></p>
<p><code><span style='font-size:10.0pt'>    <b>function</b> ReallocMem(P: Pointer; Size: Integer): Pointer;</span></code></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>The Memory Management is only three functions to implement as effectively as possible. These basal functions are used by almost everything in you application so changing them can have a remarkable effect on your application - they affect the overall speed and memory usage.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>But implementing them is easier said than done. There is a lot of interesting optimizations problems; memory fragmentation is one area. </span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>Memory Fragmentation</span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>The large rectangle in picture 1 represents one part of your heap. It is a larger memory block that the memory manager required from the operating system. The green rectangles are smaller blocks that are in use  they could contain for example a string, a button instance, a dynamic array, etc.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>In picture 2 more objects are created and space is reserved for them on the heap. In picture 3 old objects are freed and memory is available for use again. Notice that we get gaps. In picture 4 we need to allocate room for a new block that is slightly larger. We need to spend time to search for a space that is large enough and when we find a gap the fit might not be perfect and we get smaller gaps of unused space. </span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'><img width="496" height="382" src="http://fredrikhaglund.se/blog/060915/Fragmentation1.gif"></span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>FastCode Project</span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>In 2005 the <a href="http://www.fastcodeproject.org/">FastCode Project</a> had a challenge to write the fastest replacement for the Delphi Memory Manager. The Fastcode Challenges is a project running on a volunteer basis that provides highly optimized functions for the Delphi community. (Thank you guys!) Functions are faster versions of Delphi runtime library functions, VCL functions or functions meant as extensions for these. </span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>Pierre le Riche won the challenge with his memory manager <a href="http://sourceforge.net/projects/fastmm">FastMM</a>. In Developer Studio 2006 (and the new Turbo Delphi and Turbo C++) is the old Memory Manager (located in getmem.inc) replaced with Pierres code from FastMM.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>New and Old</span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>The FastCode project has a benchmark and validation tool to measure and test the different contributions and the benchmark below compares the default memory manager in Delphi 7 and Delphi 2006</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'><a href="http://fredrikhaglund.se/blog/060915/Benchmark1.gif"><img border="0" width="554" height="415" src="http://fredrikhaglund.se/blog/060915/Benchmark1.gif"></a></span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>As you can see there is a drastic difference. Will it double the speed of your application if you recompile? Probably not but it depends on your code off course. I guess the easiest way to find out is to recompile your application in Delphi 2006 and test.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>There are other benefits except for increased speed and reduced memory consumption. Since there is less memory fragmentation, memory intense application can run longer before the dreaded out of memory exception occurs. You can also use more than 3GB memory. </span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>Report on Memory Leaks </span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>The new memory manager works differently than the old memory manager and does more pointer checking, so it will catch more errors. </span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>Setting ReportMemoryLeaksOnShutdown to True shows a message box with a report on all memory leaks every time you shut down your application. </span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><code><span style='font-size:10.0pt'>    {Display leaks on shutdown if a debugger is present}<br />     ReportMemoryLeaksOnShutdown := DebugHook &lt;&gt; 0;</span></code></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>Turning it on can be a bit horrifying if you add it to an existing project. It will take some time before you get a clean project but it can be very useful if you have it in place from the beginning of a new project.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>Read more about the new memory manager in a <a href="http://bdn.borland.com/article/33416">BDN article by Pierre le Riche</a>.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><b><span style='font-size:10.0pt;font-family:Verdana'>Stuck on older versions?</span></b></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>It is possible to replace the default memory manager in older Delphi versions with your own. The only thing you have to do is to call SetMemoryManager in the System unit. If you have an old Delphi application you have not upgraded yet it is possible to download FastMM and use it in your existing application.</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
<p><span style='font-size:10.0pt;font-family:Verdana'>&nbsp;</span></p>
</p></div>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=27549&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_27549" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=User%20group%20meeting%20in%20Stockholm&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2006%2F09%2F15%2F27549" id="akst_email_27549" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2006/09/15/27549/feed</wfw:commentRss>
		</item>
		<item>
		<title>Front, Middle or Back?</title>
		<link>http://blogs.codegear.com/fhaglund/2006/09/04/27302</link>
		<comments>http://blogs.codegear.com/fhaglund/2006/09/04/27302#comments</comments>
		<pubDate>Mon, 04 Sep 2006 16:00:22 +0000</pubDate>
		<dc:creator>Fredrik Haglund archive</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<guid isPermaLink="false">http://blogs.codegear.com/fhaglund/2006/09/04/27011/</guid>
		<description><![CDATA[I attended the annual autumn seminar organised by the Delphi user group in Gothenburg, Sweden. We where twenty four enthusiastic Delphi hackers networking and sharing ideas about development. I was invited to talk about the Roadmap of DevCos products and listen to feedback.
We ended the day by visiting the amusement park Liseberg. They have a [...]]]></description>
			<content:encoded><![CDATA[<p>I attended the annual autumn seminar organised by the Delphi user group in Gothenburg, Sweden. We where twenty four enthusiastic Delphi hackers networking and sharing ideas about development. I was invited to talk about the <a href="http://bdn.borland.com/article/33519">Roadmap of DevCos products</a> and listen to feedback.</p>
<p><img src="http://fredrikhaglund.se/blog/060904/Balder434x300.jpg" align="right">We ended the day by visiting the amusement park Liseberg. They have a cool rollercoaster built in wood called Balder and I tried to empirical find out where it is best to sit. <i>Different forces operate on the front and the back of the train and the ride in the front is distinctly different from the back.  The train is slowing down as the train begins to climb over the top of the hill, and speeding up again as it starts to descend again. Thus, if there is any airtime to be had before the top of the hill, it will be best in the front, as that is the part of the train moving fastest there, but airtime after the top of a hill will be best in the back. Thus, depending on the configuration of hills on a coaster, it may a better front seat ride or back seat ride.</i> For this rollercoaster I think the front seat is best. <img src='http://blogs.codegear.com/fhaglund/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://hallvards.blogspot.com/">Hallvard Vassbotn</a>, one of the Delphi Gurus in Norway, is <a href="http://hallvards.blogspot.com/2006/08/nordic-delphi-meetup-groups.html">bloging about community meetings in Oslo</a>. He is also writing a lot of intresting things about whats new in the language since Delphi 7.</p>
<p>One of the messages I bring back from the users at the Gothenburg meeting to DevCo is not to loose focus on native development. Win32 development is still very important.  Make it future proof with Win64 compiler, Unicode support and Avalon (WPF) for VCL and bring back Delphi.NET language improvements to the native compiler.</p>
<p>Next community meeting in the Nordic region is in Stockholm in 10 days: <a href="http://delphi.meetup.com/172/events/5040855/">http://delphi.meetup.com/172/events/5040855/</a></p>
<p class="akst_link"><a href="http://blogs.codegear.com/fhaglund/?p=27302&amp;akst_action=share-this"  title="Post to del.icio.us, etc." id="akst_link_27302" class="akst_share_link" rel="nofollow">Share This</a> | <a href="mailto:?subject=Front%2C%20Middle%20or%20Back%3F&body=Have you seen this? http%3A%2F%2Fblogs.codegear.com%2Ffhaglund%2F2006%2F09%2F04%2F27302" id="akst_email_27302" class="akst_share_email" rel="nofollow">Email this page to a friend</a></p>]]></content:encoded>
			<wfw:commentRss>http://blogs.codegear.com/fhaglund/2006/09/04/27302/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
