<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Discovering background threads on Windows Mobile</title>
	<atom:link href="http://davidcarrington.co.uk/2007/11/discovering-background-threads-on-windows-mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidcarrington.co.uk/2007/11/discovering-background-threads-on-windows-mobile/</link>
	<description>UK web developer that loves phones</description>
	<lastBuildDate>Tue, 07 Feb 2012 10:00:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: daniel</title>
		<link>http://davidcarrington.co.uk/2007/11/discovering-background-threads-on-windows-mobile/comment-page-1/#comment-153</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Wed, 02 Jul 2008 10:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://davidcarrington.co.uk/2007/11/15/discovering-background-threads-on-windows-mobile/#comment-153</guid>
		<description>Hi David,

i&#039;m addressing the same problem. However I&#039;ve tested a thread sending a packet over the network every 15 seconds and when the device is in sleep mode, it sends them every 60 seconds. Does anyone know how to sort this out in order to get the right timing?

PS. The temporization inside the thread is achieved through a Thread.Sleep(15000) call.

Regards,
Daniel</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>i&#8217;m addressing the same problem. However I&#8217;ve tested a thread sending a packet over the network every 15 seconds and when the device is in sleep mode, it sends them every 60 seconds. Does anyone know how to sort this out in order to get the right timing?</p>
<p>PS. The temporization inside the thread is achieved through a Thread.Sleep(15000) call.</p>
<p>Regards,<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Carrington</title>
		<link>http://davidcarrington.co.uk/2007/11/discovering-background-threads-on-windows-mobile/comment-page-1/#comment-155</link>
		<dc:creator>David Carrington</dc:creator>
		<pubDate>Wed, 21 Nov 2007 00:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://davidcarrington.co.uk/2007/11/15/discovering-background-threads-on-windows-mobile/#comment-155</guid>
		<description>Based on some code from agsXMPP, I discovered that the Windows Forms are not thread safe. This means that you can&#039;t directly update the form controls from a background thread. I personally use a Timer control to update the UI. You could also use &quot;Invoke&quot;, but I&#039;ve had less experience there.

Microsoft have a good &lt;a href=&quot;http://samples.gotdotnet.com/quickstart/CompactFramework/doc/controlinvoker.aspx&quot; rel=&quot;nofollow&quot;&gt;quickstart tutorial&lt;/a&gt; and &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/aa446540.aspx&quot; rel=&quot;nofollow&quot;&gt;Multi-Threading Tips article&lt;/a&gt; for more information on implementing threading.</description>
		<content:encoded><![CDATA[<p>Based on some code from agsXMPP, I discovered that the Windows Forms are not thread safe. This means that you can&#8217;t directly update the form controls from a background thread. I personally use a Timer control to update the UI. You could also use &#8220;Invoke&#8221;, but I&#8217;ve had less experience there.</p>
<p>Microsoft have a good <a href="http://samples.gotdotnet.com/quickstart/CompactFramework/doc/controlinvoker.aspx" rel="nofollow">quickstart tutorial</a> and <a href="http://msdn2.microsoft.com/en-us/library/aa446540.aspx" rel="nofollow">Multi-Threading Tips article</a> for more information on implementing threading.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephen</title>
		<link>http://davidcarrington.co.uk/2007/11/discovering-background-threads-on-windows-mobile/comment-page-1/#comment-154</link>
		<dc:creator>stephen</dc:creator>
		<pubDate>Wed, 21 Nov 2007 00:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://davidcarrington.co.uk/2007/11/15/discovering-background-threads-on-windows-mobile/#comment-154</guid>
		<description>Hi David,
Am new to multi-threading in general in the .NET framework and wondered if you could elaborate on how you would use your code above to actually run code.  I am running some syncronisation code in the background and would like to update some UI controls with the results (in this case it is a label with the &quot;last updated time&quot;).  Is this easy enough to do?   Any pointers in the right direction would be well appreciated

Rgds,stephen</description>
		<content:encoded><![CDATA[<p>Hi David,<br />
Am new to multi-threading in general in the .NET framework and wondered if you could elaborate on how you would use your code above to actually run code.  I am running some syncronisation code in the background and would like to update some UI controls with the results (in this case it is a label with the &#8220;last updated time&#8221;).  Is this easy enough to do?   Any pointers in the right direction would be well appreciated</p>
<p>Rgds,stephen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Carrington</title>
		<link>http://davidcarrington.co.uk/2007/11/discovering-background-threads-on-windows-mobile/comment-page-1/#comment-152</link>
		<dc:creator>David Carrington</dc:creator>
		<pubDate>Fri, 16 Nov 2007 14:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://davidcarrington.co.uk/2007/11/15/discovering-background-threads-on-windows-mobile/#comment-152</guid>
		<description>99% of the time it will be idle doing a &lt;code&gt;Thread.Sleep()&lt;/code&gt;. It will have a hit on the battery life, but not as much as having the device turned on.</description>
		<content:encoded><![CDATA[<p>99% of the time it will be idle doing a <code>Thread.Sleep()</code>. It will have a hit on the battery life, but not as much as having the device turned on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sachin Palewar</title>
		<link>http://davidcarrington.co.uk/2007/11/discovering-background-threads-on-windows-mobile/comment-page-1/#comment-151</link>
		<dc:creator>Sachin Palewar</dc:creator>
		<pubDate>Fri, 16 Nov 2007 14:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://davidcarrington.co.uk/2007/11/15/discovering-background-threads-on-windows-mobile/#comment-151</guid>
		<description>Very interesting idea really. Although I am just wondering, how much effect it will have on  mobile&#039;s battery life?</description>
		<content:encoded><![CDATA[<p>Very interesting idea really. Although I am just wondering, how much effect it will have on  mobile&#8217;s battery life?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

