<?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>The Pursuit Of A Life &#187; ReadyState</title>
	<atom:link href="http://thepursuitofalife.com/tag/readystate/feed/" rel="self" type="application/rss+xml" />
	<link>http://thepursuitofalife.com</link>
	<description>Wouldn&#039;t you rather be writing code?</description>
	<lastBuildDate>Tue, 09 Mar 2010 02:15:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WebBrowser.DocumentComplete Firing Multiple Times: Solution</title>
		<link>http://thepursuitofalife.com/webbrowserdocumentcomplete-firing-multiple-times-solution/</link>
		<comments>http://thepursuitofalife.com/webbrowserdocumentcomplete-firing-multiple-times-solution/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 21:19:50 +0000</pubDate>
		<dc:creator>Anthony Stevens</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[DocumentCompleted]]></category>
		<category><![CDATA[ReadyState]]></category>
		<category><![CDATA[Snapper]]></category>
		<category><![CDATA[WebBrowser]]></category>

		<guid isPermaLink="false">http://xidey.wordpress.com/2007/12/29/webbrowserdocumentcomplete-firing-multiple-times-solution/</guid>
		<description><![CDATA[My previous hunch was correct: before you do any actual work in the DocumentComplete event handler, make sure the ReadyState of the control equals &#8220;Complete&#8221;.
Here&#8217;s the updated diagnostic output: notice the time taken drops to three seconds now that I&#8217;m not looping through the worker code eleven different times.
'Snapper.WinForm.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. [...]]]></description>
			<content:encoded><![CDATA[<p>My <a href="http://xidey.wordpress.com/2007/12/29/webbrowserdocumentcompleted-firing-multiple-times/">previous hunch</a> was correct: before you do any actual work in the DocumentComplete event handler, make sure the ReadyState of the control equals &#8220;Complete&#8221;.</p>
<p>Here&#8217;s the updated diagnostic output: notice the time taken drops to three seconds now that I&#8217;m not looping through the worker code eleven different times.</p>
<p><code>'Snapper.WinForm.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.<br />
Uninitialized<br />
Uninitialized<br />
Uninitialized<br />
Uninitialized<br />
Uninitialized<br />
'Snapper.WinForm.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll'<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
12/29/2007 1:15:03 PM - DocumentCompleted!<br />
12/29/2007 1:15:03 PM - DocumentCompleted!<br />
Interactive<br />
Interactive<br />
Interactive<br />
12/29/2007 1:15:03 PM - DocumentCompleted!<br />
12/29/2007 1:15:03 PM - DocumentCompleted!<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
12/29/2007 1:15:05 PM - DocumentCompleted!<br />
12/29/2007 1:15:05 PM - DocumentCompleted!<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
Interactive<br />
12/29/2007 1:15:05 PM - DocumentCompleted!<br />
12/29/2007 1:15:05 PM - DocumentCompleted!<br />
12/29/2007 1:15:05 PM - DocumentCompleted!<br />
12/29/2007 1:15:05 PM - DocumentCompleted!<br />
Interactive<br />
12/29/2007 1:15:06 PM - DocumentCompleted!<br />
Complete<br />
12/29/2007 1:15:06 PM - DocumentCompleted!<br />
Doing work..</code></p>
<p>It&#8217;s probably also the case that the WebBrowserDocumentCompletedEventArgs parameter of the DocumentCompleted event handler gives me additional info with which to discriminate this ReadyState. May have to look into that one.</p>
<div class="wlWriterSmartContent" style="display:inline;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/Snapper" rel="tag">Snapper</a>,<a href="http://technorati.com/tags/WebBrowser" rel="tag">WebBrowser</a>,<a href="http://technorati.com/tags/DocumentCompleted" rel="tag">DocumentCompleted</a>,<a href="http://technorati.com/tags/ReadyState" rel="tag">ReadyState</a></div>
]]></content:encoded>
			<wfw:commentRss>http://thepursuitofalife.com/webbrowserdocumentcomplete-firing-multiple-times-solution/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
