<?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>Scott&#039;s code and other ponderings...</title>
	<atom:link href="http://www.scottleckie.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottleckie.com</link>
	<description>...how hard can it be?...</description>
	<lastBuildDate>Sat, 04 Sep 2010 23:17:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Kindle 3 &#8211; a game changer</title>
		<link>http://www.scottleckie.com/2010/09/kindle-3-a-game-changer/</link>
		<comments>http://www.scottleckie.com/2010/09/kindle-3-a-game-changer/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 23:14:32 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Kindle]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=150</guid>
		<description><![CDATA[<p>&#160;</p>




<p>Well, here I am, two days into Kindle ownership and I&#39;m sold. There is a little bit of clunkiness but, overall, this is the best evidence yet that paper is dead. Actually, and more worrisome as some of my friends work in book publishing/distribution, I can forecast that we will have no need for traditional publishers and bookshops in 5-10 years&#8230;</p>
<p>So, what is it? It&#39;s a device that is roughly a third the size of an iPad (which my wife owns) that is designed for nothing more than displaying books and documents. The most striking aspect is the e-ink display that really (and, I mean, really!) looks like paper. The first time I was amazed by this was when I opened [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/09/kindle-3-a-game-changer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How excited am I about the new Kindle?</title>
		<link>http://www.scottleckie.com/2010/08/how-excited-am-i-about-the-new-kindle/</link>
		<comments>http://www.scottleckie.com/2010/08/how-excited-am-i-about-the-new-kindle/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 00:44:26 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Kindle]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=146</guid>
		<description><![CDATA[<p>The answer? &#34;Very&#34;!</p>
<p>Oh Dawg, it seems that the magic cutoff for delivery by this week was 0600 on 6th August and I, of course, ordered it mid-afternoon on August 6th, which puts me in the twilight zone of &#34;after 27th August and before some unspoken date in September&#34;.</p>
<p>To make matters worse, Amazon delivered (right on schedule!) my &#163;30 Kindle Kover (my tm). So, I spent the day walking round the office, going &#34;oooohhhh feel that&#8230; that is EXACTLY the place that my Kindle would occupy, if I had it&#34;</p>
<p>To be fair to my co-workers; if they squinted enough, and could get as excited as I clearly was, and they remembered that &#34;co-worker&#34; = &#34;employee, who I could get rid of at [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/08/how-excited-am-i-about-the-new-kindle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>_CrtDumpMemoryLeaks() and related fun</title>
		<link>http://www.scottleckie.com/2010/08/_crtdumpmemoryleaks-and-related-fun/</link>
		<comments>http://www.scottleckie.com/2010/08/_crtdumpmemoryleaks-and-related-fun/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 00:40:35 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=133</guid>
		<description><![CDATA[<p>Welcome to the 1990s&#8230;.</p>
<p>So, I have a new&#160;application that is resolutely non-MFC and non-ATL. Why? Because it&#39;s a GINA DLL that can be running on a machine going back to early 2001 (not quite the 1990s of the previous line but close enough!) where we have no idea whether it is running on XP SP0, SP1, SP2 or SP3.</p>
<p>This app has a lot of malloc and a lot of new object() calls in it. Are these all cleaning up after themselves?</p>
<p>Surprisingly(!), the C RunTime Library gives us an easy way to check; you can call _CrtDumpMemoryLeaks()</p>
<p>It ain&#39;t as easy as that though (obviously). To be effective, you need to bear in mind the following;</p>

_CrtDumpMemoryLeaks() only understands the context of its own [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/08/_crtdumpmemoryleaks-and-related-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ahhh&#8230; the olden days&#8230; DialogBox, MessagePumps and the joy of HWNDs</title>
		<link>http://www.scottleckie.com/2010/06/ahhh-the-olden-days-dialogbox-messagepumps-and-the-joy-of-hwnds/</link>
		<comments>http://www.scottleckie.com/2010/06/ahhh-the-olden-days-dialogbox-messagepumps-and-the-joy-of-hwnds/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 23:57:22 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Win32 API]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=127</guid>
		<description><![CDATA[<p>How soon we forget. A few years ago, I weaned myself off of Visual C++ and MFC and toyed (briefly) with ASP.NET</p>
<p>Now, I&#39;m finally getting to grips with C#, .NET and CLR 4.0 and Silverlight.</p>
<p>And, all of a sudden, I&#39;m thrust back to 1996. Why? Because we need to write a GINA (Graphical Identification aNd Authentication) component as part of a password reset application.</p>
<p>So, here we are, with definitely no CLR (which rules out C# and CLR) and recommended against the MFC. So, we&#39;re literally back in the days of defining dialog boxes as a set of resource definitions, and copious calls to CreateWindow. And that&#39;s before we get to the single threaded message pump that is WndProc.</p>
<p>Couple all of that [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/06/ahhh-the-olden-days-dialogbox-messagepumps-and-the-joy-of-hwnds/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 and data-bound combobox &#8211; the answer</title>
		<link>http://www.scottleckie.com/2010/05/silverlight-databound-combobox/</link>
		<comments>http://www.scottleckie.com/2010/05/silverlight-databound-combobox/#comments</comments>
		<pubDate>Sun, 16 May 2010 00:38:03 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=120</guid>
		<description><![CDATA[<p>=========================================================================================</p>
<p>Update: 10th August 2010; Sorry, folks, this continues to be as complex before. What follows works ~95% of the time but will occasionally fail because the lookup data source is not available when the main data source is queried.</p>
<p>This really should not be difficult, but it appears that it really is.</p>
<p>I think that the solution is to move to an MVVM model, where the ViewModel presents the primary data source as well as the lookup data sources. Better; it provides dependency linking so that when the lookup lists change, then dependant views are updated.</p>
<p>You may now be thinking &#34;WHAT!? It can&#39;t be that complicated, surely?!?!?!?&#34;. Well, I thought the same, and it seems that it really is that complex  </p>
<p>It&#39;s [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/05/silverlight-databound-combobox/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Complete Silverlight 4 training videos at channel9</title>
		<link>http://www.scottleckie.com/2010/05/complete-silverlight-4-training-videos-at-channel9/</link>
		<comments>http://www.scottleckie.com/2010/05/complete-silverlight-4-training-videos-at-channel9/#comments</comments>
		<pubDate>Sat, 01 May 2010 21:40:15 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=112</guid>
		<description><![CDATA[Excellent Silverlight 4 training session [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/05/complete-silverlight-4-training-videos-at-channel9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FileTreeView source (1.0.0.0)</title>
		<link>http://www.scottleckie.com/2010/04/filetreeview_source_1-0-0-0/</link>
		<comments>http://www.scottleckie.com/2010/04/filetreeview_source_1-0-0-0/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 00:01:24 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[FileTreeView]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=107</guid>
		<description><![CDATA[<p>I had promised to post this to codeproject, but I wanted that article to be sooooooooooooooooooooo perfect&#8230; I spent days and weeks and months and years writing the article but never got round to finishing it.</p>
<p>In the meantime, a number of people have asked for the source to FileTreeView and, as promised, here it is!</p>
<p>http://www.scottleckie.com/wp-content/uploads/FileTreeView.zip</p>
<p>&#160;</p>
<p>I&#39;m an open kinda guy so if you have any suggestions or improvements, please add a comment, or email me, and I&#39;ll do my best to incorporate [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/04/filetreeview_source_1-0-0-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code 4004 &#8220;Unhandled error in silverlight application&#8221;</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/</link>
		<comments>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 23:30:11 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=104</guid>
		<description><![CDATA[<p>Edit; 26th May 2010; This is my most favorite post! Check out related Silverlight posts here&#8230;</p>
<p>Just getting started in Silverlight 4 WCF RIA Services (which is astonishing, by the way &#8211; check out Brad Abram&#39;s walkthrough here) but I was getting stuck at the validation part.</p>
<p>When I exercise the validation (you know, red bits in the browser because you&#39;re failing metadata requirements) and SubmitChanges, it was throwing up a horrible error;</p>
<p style="margin-left: 40px">An unhandled exception (&#39;Unhandled Error in Silverlight Application</p>
<p style="margin-left: 40px">Code: 4004</p>
<p style="margin-left: 40px">Category: ManagedRunTimError</p>
<p style="margin-left: 40px">Message: System.ServiceModel.DomainServices.Client.DomainException: And error occurred while submitting changes&#8230;</p>
<p>The only funny bit about this was the typo; &#34;And error occurred&#34;&#8230; The dialog is shown here;</p>
<p></p>
<p>&#160;</p>
<p>OK &#8211; I got an exception, let&#39;s debug&#8230; So, I click [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Silverlight 4 Technical Features Overview</title>
		<link>http://www.scottleckie.com/2010/04/silverlight-4-tech-features-overview/</link>
		<comments>http://www.scottleckie.com/2010/04/silverlight-4-tech-features-overview/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 22:23:56 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=97</guid>
		<description><![CDATA[




<p>John Papa and Adam Kinney have posted a &#34;Silverlight 4 Technical Features Overview&#34; on channel9 (15th April 2010). Goes into good detail about all of the new SL 4 features and gives lots of sample code.</p>
<p>&#160;</p>
<p>I&#39;m hoping to use this to finally figure out databound combo boxes&#8230;</p>
<p>Rush over and read / print the entire 75 pages at Channel9</p>
<p>Covers; Business Application Development, Silverlight Toolkit, MS SL 4 Tools for VS2010, WCF RIA Services, Richer UI design, Expression Blend, O-O-B (Sandboxed and Trusted apps), and [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/04/silverlight-4-tech-features-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;BindingExpression path error&#8221; when binding to a POCO</title>
		<link>http://www.scottleckie.com/2010/03/bindingexpression-path-error-when-binding-to-a-poco/</link>
		<comments>http://www.scottleckie.com/2010/03/bindingexpression-path-error-when-binding-to-a-poco/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 21:56:29 +0000</pubDate>
		<dc:creator>Scott Leckie</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://www.scottleckie.com/?p=93</guid>
		<description><![CDATA[<p>I&#39;m passing a POCO to a Child Window, and the very first thing it needs to do is display a couple of properties from that object. So, I rattled off the basic code;</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; private MachineCredentials machineCreds { get; set; }</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; private BackupProviderType backupProvider { get; set; }</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; public RemoteBrowser(MachineCredentials machineCreds, BackupProviderType backupProvider)</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.machineCreds = machineCreds;</p>
<p class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.backupProvider = [...]]]></description>
		<wfw:commentRss>http://www.scottleckie.com/2010/03/bindingexpression-path-error-when-binding-to-a-poco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
