<?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: Timers and Threads in .Net</title>
	<atom:link href="http://www.wackylabs.net/2006/11/timers-and-threads-in-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wackylabs.net/2006/11/timers-and-threads-in-net/</link>
	<description>Mostly code, sometimes something else, always slightly wacky.</description>
	<lastBuildDate>Mon, 06 Feb 2012 08:55:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Beppo</title>
		<link>http://www.wackylabs.net/2006/11/timers-and-threads-in-net/#comment-370</link>
		<dc:creator>Beppo</dc:creator>
		<pubDate>Wed, 31 Jan 2007 23:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/2006/11/timers-and-threads-in-net/#comment-370</guid>
		<description>I had that problem, too.  I&#039;m moving some code from Visual Studio 5 (&#039;97) to VS2005.  It&#039;s really frustrating me how they decided to change how some timers work and such.  It&#039;s causing me to miss deadlines...  I really wish I hadn&#039;t been forced into upgrading compilers.

When I kill the timer to try to prevent reentrancy, the timer never restarts.  I&#039;ve tried various things and none are working for me.  It&#039;s so frustrating to have production code that has worked for years now not work anymore because it was compiled with VS2005.</description>
		<content:encoded><![CDATA[<p>I had that problem, too.  I&#8217;m moving some code from Visual Studio 5 (&#8217;97) to VS2005.  It&#8217;s really frustrating me how they decided to change how some timers work and such.  It&#8217;s causing me to miss deadlines&#8230;  I really wish I hadn&#8217;t been forced into upgrading compilers.</p>
<p>When I kill the timer to try to prevent reentrancy, the timer never restarts.  I&#8217;ve tried various things and none are working for me.  It&#8217;s so frustrating to have production code that has worked for years now not work anymore because it was compiled with VS2005.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.wackylabs.net/2006/11/timers-and-threads-in-net/#comment-369</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 02 Jan 2007 10:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/2006/11/timers-and-threads-in-net/#comment-369</guid>
		<description>The problem I had wasn&#039;t with the random number generation - thats just some boiler plate code to put some random delays in to illustrate the problem.</description>
		<content:encoded><![CDATA[<p>The problem I had wasn&#8217;t with the random number generation &#8211; thats just some boiler plate code to put some random delays in to illustrate the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Knight</title>
		<link>http://www.wackylabs.net/2006/11/timers-and-threads-in-net/#comment-368</link>
		<dc:creator>Rich Knight</dc:creator>
		<pubDate>Mon, 01 Jan 2007 22:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.wackylabs.net/2006/11/timers-and-threads-in-net/#comment-368</guid>
		<description>I got hit with the same gotcha!  A solution I came up with is to seed Random with Thread.CurrentThread.GetHashCode() or to give you the complete code...

Random rand = new Random(Thread.CurrentThread.GetHashCode());

This could potentially cause repeated &#039;random&#039; sequences since its actually only pseudo-random.  So consider if this could be a problem for your specific application.</description>
		<content:encoded><![CDATA[<p>I got hit with the same gotcha!  A solution I came up with is to seed Random with Thread.CurrentThread.GetHashCode() or to give you the complete code&#8230;</p>
<p>Random rand = new Random(Thread.CurrentThread.GetHashCode());</p>
<p>This could potentially cause repeated &#8216;random&#8217; sequences since its actually only pseudo-random.  So consider if this could be a problem for your specific application.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

