<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Journal #259850</title>
	<atom:link href="http://mhaggag.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mhaggag.wordpress.com</link>
	<description>A software developer's blog: C, C++, OCaml, Operating Systems Development, DirectX, Managed DirectX</description>
	<lastBuildDate>Sun, 05 Aug 2007 06:20:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mhaggag.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Journal #259850</title>
		<link>http://mhaggag.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mhaggag.wordpress.com/osd.xml" title="Journal #259850" />
	<atom:link rel='hub' href='http://mhaggag.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Managed Overlay Library</title>
		<link>http://mhaggag.wordpress.com/2007/08/05/managed-overlay-library/</link>
		<comments>http://mhaggag.wordpress.com/2007/08/05/managed-overlay-library/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 06:17:37 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[csharp]]></category>
		<category><![CDATA[DirectDraw]]></category>
		<category><![CDATA[DirectX]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mhaggag.wordpress.com/2007/08/05/managed-overlay-library/</guid>
		<description><![CDATA[I added a managed release of the overlay library here. I had intended to add this on Friday, and I took a jab at it back then, but something came up and I couldn&#8217;t finish it. Also, I&#8217;ve not packaged the source for the managed sample separately. So, just retrieve the latest source code from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=13&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I added a managed release of the overlay library <a HREF="http://www.codeplex.com/DirectDrawOverlayLib/Release/ProjectReleases.aspx?ReleaseId=6255" TITLE="Overlay library 0.5b Managed">here</a>. I had intended to add this on Friday, and I took a jab at it back then, but something came up and I couldn&#8217;t finish it.</p>
<p>Also, I&#8217;ve not packaged the source for the managed sample separately. So, just retrieve the latest source code from the source code tab if you want to check the sample source.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=13&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2007/08/05/managed-overlay-library/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>
	</item>
		<item>
		<title>DirectDraw Overlay Library released</title>
		<link>http://mhaggag.wordpress.com/2007/04/26/directdraw-overlay-library-released/</link>
		<comments>http://mhaggag.wordpress.com/2007/04/26/directdraw-overlay-library-released/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 07:31:40 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[DirectDraw]]></category>
		<category><![CDATA[DirectX]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mhaggag.wordpress.com/2007/04/26/directdraw-overlay-library-released/</guid>
		<description><![CDATA[I have released a beta of the overlay library at codeplex, here. The current version features the C++ library only, until I iron out some remaining issues.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=12&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have released a beta of the overlay library at codeplex, <a href="http://www.codeplex.com/DirectDrawOverlayLib" title="DirectDrawOverlayLib on CodePlex.com">here</a>. The current version features the C++ library only, until I iron out some remaining issues.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=12&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2007/04/26/directdraw-overlay-library-released/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>
	</item>
		<item>
		<title>DirectDraw Overlays on Vista, Part II</title>
		<link>http://mhaggag.wordpress.com/2007/04/14/directdraw-overlays-on-vista-part-ii/</link>
		<comments>http://mhaggag.wordpress.com/2007/04/14/directdraw-overlays-on-vista-part-ii/#comments</comments>
		<pubDate>Sat, 14 Apr 2007 05:37:22 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[DirectDraw]]></category>
		<category><![CDATA[DirectX]]></category>
		<category><![CDATA[Overlays]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://mhaggag.wordpress.com/2007/04/14/directdraw-overlays-on-vista-part-ii/</guid>
		<description><![CDATA[I discovered that the overlay problem I reported earlier was caused by the Desktop Window Manager, which is responsible for compositing under Vista. The DWM expects applications to draw themselves into an off-screen surface, which it can use for compositing. The solution I found back then, which is to retrieve the DC on the primary surface, caused the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=10&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I discovered that the <a HREF="http://mhaggag.wordpress.com/2007/04/11/directdraw-overlays-on-vista-dderr_outofcaps/" TITLE="DDERR_OUTOFCAPS">overlay problem</a> I reported earlier was caused by the <a HREF="http://msdn2.microsoft.com/en-us/library/aa969540.aspx" TITLE="Desktop Window Manager Overview (MSDN)">Desktop Window Manager</a>, which is responsible for compositing under Vista. The DWM expects applications to draw themselves into an off-screen surface, which it can use for compositing. The solution I found back then, which is to retrieve the DC on the primary surface, caused the locking of the primary surface, which forces the DWM to relieve control to the application and switch back to &#8220;Aero Basic&#8221; for the duration of the application.</p>
<p>So I came up with a more explicit solution this time:</p>
<p><a HREF="http://mhaggag.wordpress.com/?attachment_id=11" REL="attachment wp-att-11" TITLE="Disabling the DWM">Disabling the DWM</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=10&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2007/04/14/directdraw-overlays-on-vista-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>
	</item>
		<item>
		<title>DirectDraw Overlays on Vista: DDERR_OUTOFCAPS</title>
		<link>http://mhaggag.wordpress.com/2007/04/11/directdraw-overlays-on-vista-dderr_outofcaps/</link>
		<comments>http://mhaggag.wordpress.com/2007/04/11/directdraw-overlays-on-vista-dderr_outofcaps/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 13:37:32 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[DirectDraw]]></category>
		<category><![CDATA[DirectX]]></category>
		<category><![CDATA[Overlays]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://mhaggag.wordpress.com/2007/04/11/directdraw-overlays-on-vista-dderr_outofcaps/</guid>
		<description><![CDATA[My DirectDraw Overlay Sample does not work on Windows Vista. It fails at the call to IDirectDraw7::UpdateOverlay, with the HRESULT DDERR_OUTOFCAPS. If you search online for that, you won&#8217;t find any meaningful results&#8211;only the explanation that this error occurs when the overlay capabilities are already maxed, i.e. the DDCAPS::dwMaxVisibleOverlays cap has already been surpassed. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=9&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My <a HREF="http://www.gamedev.net/community/forums/topic.asp?topic_id=359319">DirectDraw Overlay Sample</a> does not work on Windows Vista. It fails at the call to IDirectDraw7::UpdateOverlay, with the HRESULT DDERR_OUTOFCAPS. If you search online for that, you won&#8217;t find any meaningful results&#8211;only the explanation that this error occurs when the overlay capabilities are already maxed, i.e. the DDCAPS::dwMaxVisibleOverlays cap has already been surpassed.</p>
<p>In examining the issue, I noticed that <a HREF="http://www.angelcode.com/dev/overlay/">AngelCode&#8217;s overlay sample</a> works fine. After examining his code, the only difference in our initialization sequences is that he retrieves the device context&#8211;HDC&#8211;on the primary surface before showing the overlay. He does that because he draws manually to the overlay, and he uses GDI to figure out the format of the surface.</p>
<p>So, it turns out, the solution was to simply retrieve the device context on the primary surface and immediately release it before calling IDirectDraw7::UpdateOverlay.</p>
<p>With that problem out of the way, I&#8217;m now working on transforming my sample into a flexible, robust overlay library.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=9&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2007/04/11/directdraw-overlays-on-vista-dderr_outofcaps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>
	</item>
		<item>
		<title>The Visual Studio Lockup Mystery…solved!</title>
		<link>http://mhaggag.wordpress.com/2007/03/01/the-visual-studio-lockup-mystery%e2%80%a6solved/</link>
		<comments>http://mhaggag.wordpress.com/2007/03/01/the-visual-studio-lockup-mystery%e2%80%a6solved/#comments</comments>
		<pubDate>Thu, 01 Mar 2007 19:35:13 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://mhaggag.wordpress.com/2007/03/01/the-visual-studio-lockup-mystery%e2%80%a6solved/</guid>
		<description><![CDATA[For a long time, I&#8217;ve been experiencing very annoying Windows lockups while using Visual Studio. It wasn&#8217;t uncommon for me to get 2 lockups a day with Visual Studio.NET. Moving to Visual Studio 2005 helped, but it still occurred every now and then. Finally, someone on the virtualdub team used his debugging Kung-Fu to find [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=8&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For a long time, I&#8217;ve been experiencing very annoying Windows lockups while using Visual Studio. It wasn&#8217;t uncommon for me to get 2 lockups a day with Visual Studio.NET. Moving to Visual Studio 2005 helped, but it still occurred every now and then. Finally, someone on the <a HREF="http://www.virtualdub.org">virtualdub</a> team used his debugging Kung-Fu to <a HREF="http://www.virtualdub.org/blog/pivot/entry.php?id=118">find out what&#8217;s going on</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=8&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2007/03/01/the-visual-studio-lockup-mystery%e2%80%a6solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>
	</item>
		<item>
		<title>gethostbyname &#8211; First chance exception 0x000006C5: The tag is invalid</title>
		<link>http://mhaggag.wordpress.com/2006/11/04/gethostbyname-first-chance-exception-0x000006c5-the-tag-is-invalid/</link>
		<comments>http://mhaggag.wordpress.com/2006/11/04/gethostbyname-first-chance-exception-0x000006c5-the-tag-is-invalid/#comments</comments>
		<pubDate>Sat, 04 Nov 2006 06:42:24 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://mhaggag.wordpress.com/2006/11/04/gethostbyname-first-chance-exception-0x000006c5-the-tag-is-invalid/</guid>
		<description><![CDATA[When running a Win32 application on WOW64, you&#8217;ll get such a first-chance exception&#8211;but the code will continue to work as usual. The exception only slows down operation. See: Bug report Just to (hopefully) help those who google the above error.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=7&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When running a Win32 application on WOW64, you&#8217;ll get such a first-chance exception&#8211;but the code will continue to work as usual. The exception only slows down operation. See: <a href="http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=6ae85861-76af-44fd-a275-d64b0835bfcf">Bug report</a></p>
<p>Just to (hopefully) help those who google the above error.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=7&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2006/11/04/gethostbyname-first-chance-exception-0x000006c5-the-tag-is-invalid/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>
	</item>
		<item>
		<title>Milkshape3D Model Viewer</title>
		<link>http://mhaggag.wordpress.com/2006/08/24/milkshape3d-model-viewer/</link>
		<comments>http://mhaggag.wordpress.com/2006/08/24/milkshape3d-model-viewer/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 06:34:11 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[csharp]]></category>
		<category><![CDATA[DirectX]]></category>
		<category><![CDATA[Managed DirectX]]></category>

		<guid isPermaLink="false">https://mhaggag.wordpress.com/2006/08/24/milkshape3d-model-viewer/</guid>
		<description><![CDATA[This has been on my TODO list for a long time. I started working on this about 4 or 5 months back, I think, but kept getting distracted by other things (e.g. finals, work, etc). The announcement thread on GameDev.net can be found here. Obligatory images: Animated ninja model, by psionic Static car model, by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=5&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This has been on my TODO list for a <i>long</i> time. I started working on this about 4 or 5 months back, I think, but kept getting distracted by other things (e.g. finals, work, etc). The announcement thread on GameDev.net can be found <a href="http://www.gamedev.net/community/forums/topic.asp?topic_id=411052" title="Announcement Thread">here</a>.</p>
<p>Obligatory images:</p>
<p align="center"><img src="http://nexe.gamedev.net/files/ms3d-viewer-1.png" alt="Animated ninja model (by psionic)" height="480" width="640" /></p>
<p align="center">Animated ninja model, by <a href="http://www.psionic3d.co.uk/" title="Psionic 3D">psionic</a></p>
<p align="center"><img src="http://nexe.gamedev.net/files/ms3d-viewer-2.png" alt="Car" height="480" width="640" /></p>
<p align="center">Static car model, by <a href="http://www.psionic3d.co.uk/" title="Psionic 3D">psionic</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=5&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2006/08/24/milkshape3d-model-viewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>

		<media:content url="http://nexe.gamedev.net/files/ms3d-viewer-1.png" medium="image">
			<media:title type="html">Animated ninja model (by psionic)</media:title>
		</media:content>

		<media:content url="http://nexe.gamedev.net/files/ms3d-viewer-2.png" medium="image">
			<media:title type="html">Car</media:title>
		</media:content>
	</item>
		<item>
		<title>Having DirectX Memory Leaks?</title>
		<link>http://mhaggag.wordpress.com/2006/07/26/having-directx-memory-leaks/</link>
		<comments>http://mhaggag.wordpress.com/2006/07/26/having-directx-memory-leaks/#comments</comments>
		<pubDate>Tue, 25 Jul 2006 22:00:58 +0000</pubDate>
		<dc:creator>mhaggag</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[DirectX]]></category>

		<guid isPermaLink="false">https://mhaggag.wordpress.com/2006/07/26/having-directx-memory-leaks/</guid>
		<description><![CDATA[You shouldn&#8217;t. Really. Realize that there is a concept called &#8220;smart pointers&#8220;. These act just like normal pointers, except that they take into consideration the forgetfulness of humans&#8211;they make sure you don&#8217;t end up leaking something. Now, if you didn&#8217;t know that smart pointers existed, you have a problem. A big one&#8211;you don&#8217;t know your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=3&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You shouldn&#8217;t. <i>Really</i>. Realize that there is a concept called &#8220;<a href="http://www.google.com/search?hl=en&amp;q=smart+pointers&amp;btnG=Google+Search" title="Smart Pointers">smart pointers</a>&#8220;. These act just like normal pointers, except that they take into consideration the forgetfulness of humans&#8211;they make sure you don&#8217;t end up leaking something.</p>
<p>Now, if you didn&#8217;t know that smart pointers existed, you have a problem. <i>A big one&#8211;</i>you don&#8217;t know your language. It is very unfortunate that the vast majority of people choose to start with a very complex language like C++, when it only hinders their learning and development. If you&#8217;re still at an early stage, new to programming, don&#8217;t start with C++. Learn a simpler, more elegant high-level language&#8211;e.g., C#.</p>
<p>If you do insist on taking the C++ route, spend a couple of days reading about <a href="http://www.google.com/search?hl=en&amp;q=microsoft+COM&amp;btnG=Google+Search" title="COM">COM</a>, and then check out <a href="http://www.google.com/search?hl=en&amp;lr=&amp;q=Smart+COM+pointer&amp;btnG=Search" title="Smart COM Pointers">Smart COM Pointers</a>. Also keep in mind that there exists an excellent collecton of libraries known as <i>boost</i>, and that it does have <a href="http://www.boost.org/libs/smart_ptr/index.html" title="Boost Smart Pointers">smart pointers</a>.</p>
<p>Good luck.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mhaggag.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mhaggag.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mhaggag.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mhaggag.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mhaggag.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mhaggag.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mhaggag.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mhaggag.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mhaggag.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mhaggag.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mhaggag.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mhaggag.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mhaggag.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mhaggag.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mhaggag.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mhaggag.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mhaggag.wordpress.com&amp;blog=321371&amp;post=3&amp;subd=mhaggag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mhaggag.wordpress.com/2006/07/26/having-directx-memory-leaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9648446756d12e6ffaf47f7ead15976e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">MHaggag</media:title>
		</media:content>
	</item>
	</channel>
</rss>
