<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Niels R. &#187; CorFlags.exe</title>
	<atom:link href="http://lxit.be/tag/corflagsexe/feed/" rel="self" type="application/rss+xml" />
	<link>http://lxit.be</link>
	<description>... LXIT.be ...</description>
	<lastBuildDate>Tue, 17 Aug 2010 19:04:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>GetHashCode() on a 32-bit vs a 64-bit platform</title>
		<link>http://lxit.be/programming/gethashcode-on-a-32-bit-vs-a-64-bit-platform/</link>
		<comments>http://lxit.be/programming/gethashcode-on-a-32-bit-vs-a-64-bit-platform/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 12:40:05 +0000</pubDate>
		<dc:creator>Niels R.</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[.NET 2.0]]></category>
		<category><![CDATA[CorFlags.exe]]></category>
		<category><![CDATA[GetHashCode]]></category>

		<guid isPermaLink="false">http://lxit.be/?p=66</guid>
		<description><![CDATA[If you compile your .NET application with the standard &#8220;Any CPU&#8221; option, it will run as a 32-bit process on a 32-bit OS and as a 64-bit process on a 64-bis process. When you use GetHashCode() the generated hashes on &#8230; <a href="http://lxit.be/programming/gethashcode-on-a-32-bit-vs-a-64-bit-platform/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you compile your .NET application with the standard &#8220;Any CPU&#8221; option, it will run as a 32-bit process on a 32-bit OS and as a 64-bit process on a 64-bis process.</p>
<p>When you use GetHashCode() the generated hashes on the 32-bit platform will differ from the hashes on the 64-bit platform&#8230;</p>
<p>The solution is either to not use the GetHashCode() the way you do it, or if you can&#8217;t change the way your program works you can run it in 32-bit mode by setting the 32-bit flag in the executable&#8217;s headers using <em>CorFlags.exe</em>.</p>
<p>Set the 32-bit flag:<code lang="dos">CorFlags.exe YourApplication.exe /32BIT+</code></p>
<p>Remove the 32-bit flag:<code lang="dos">CorFlags.exe YourApplication.exe /32BIT-</code></p>
<p>More info about <em>CoreFlags.exe</em> on MSDN: <a title="MSDN Library - CorFlags Conversion Tool (CorFlags.exe)" href="http://msdn.microsoft.com/en-us/library/ms164699(VS.80).aspx">http://msdn.microsoft.com/en-us/library/ms164699(VS.80).aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lxit.be/programming/gethashcode-on-a-32-bit-vs-a-64-bit-platform/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

