<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Tech Off</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Tech Off</title><link>http://channel9.msdn.com/forums/TechOff/</link></image><description>Want to keep the conversation technical? This is the place. Hard hat required.</description><link>http://channel9.msdn.com/forums/TechOff/</link><language>en-us</language><pubDate>Tue, 03 Nov 2009 18:37:13 GMT</pubDate><lastBuildDate>Tue, 03 Nov 2009 18:37:13 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3581.29706, Culture=neutral, PublicKeyToken=null)</generator><item><title>x86 vs x64 performance ?</title><description>&lt;p&gt;I'm running some test in C++ to be sure that our program run in x86 and x64. I was really surprise to notice a speed improvement in x64. I'm running the test on a Win7 x64 machine. Is the x64 is faster because it is running on a 64 OS ? Or is it something in the code that is better in x64 ? I'm using VS 2008.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[code language="cpp"]&lt;br /&gt;#include &amp;lt;iostream&amp;gt; &lt;br /&gt;#include &amp;lt;ctime&amp;gt; &lt;br /&gt;&lt;br /&gt;using namespace std; &lt;br /&gt;&lt;br /&gt;#define ROWS 2000 &lt;br /&gt;#define COLS 2000 &lt;br /&gt;#define LOOP 100 &lt;br /&gt;&lt;br /&gt;int main() &lt;br /&gt;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp; float* m = new float[ROWS * COLS]; &lt;br /&gt;&amp;nbsp;&amp;nbsp; time_t begin, end;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; time(&amp;amp;begin); &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; for (int n = 0; n &amp;lt; LOOP; ++n) &lt;br /&gt;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (size_t row = 0; row &amp;lt; ROWS; ++row) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (size_t col = 0; col &amp;lt; COLS; ++col) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m[row * COLS + col] = 1.0f * (rand() % 1000); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp; time(&amp;amp;end); double elapse = difftime(end, begin); &lt;br /&gt;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; "Done in " &amp;lt;&amp;lt; elapse &amp;lt;&amp;lt; " seconds" &amp;lt;&amp;lt; endl; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; delete[] m; &lt;br /&gt;} [/code]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That simple test took 12 seconds in x86 and only 8 seconds in x64. Repro or explanation anyone ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/504132/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/504132-x86-vs-x64-performance-/</comments><link>http://channel9.msdn.com/forums/TechOff/504132-x86-vs-x64-performance-/</link><pubDate>Tue, 03 Nov 2009 18:36:21 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/504132-x86-vs-x64-performance-/</guid><evnet:views>107</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/504132/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm running some test in C++ to be sure that our program run in x86 and x64. I was really surprise to notice a speed improvement in x64. I'm running the test on a Win7 x64 machine. Is the x64 is faster because it is running on a 64 OS ? Or is it something in the code that is better in x64 ? I'm&amp;#8230;</evnet:previewtext><dc:creator>cro</dc:creator><slash:comments>6</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/504132-x86-vs-x64-performance-/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/504132/Trackback.aspx</trackback:ping></item><item><title>Enums are expensive in dictionaries?</title><description>&lt;p&gt;I was building a cellular automaton earlier (fireflies simulation) and I decided to use a C# enum to represent a fly's current state (Charging, Sensitive, and Flashing). This is fine.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However when it came to rendering the CA world I needed to map a Color instance to each state, so I created a static Dictionary&amp;lt;FlyState,Color&amp;gt; member whereby a colour could be matched to a fly's state.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However NProf reports that the dictionary's FindEntry call (from the indexer property) was consuming 50% of my program's CPU time (eh wtf).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I modified my code to use Dictionary&amp;lt;Int32,Color&amp;gt; and changed the indexer property call to cast the FlyState to int, and suddenly it dropped from 50% down to 4%.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'd have thought Dictionary would call .GetHashCode on the enum directly, which (should) be identical to Int32.GetHashCode.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So what's going on, eh?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/504120/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/504120-Enums-are-expensive-in-dictionaries/</comments><link>http://channel9.msdn.com/forums/TechOff/504120-Enums-are-expensive-in-dictionaries/</link><pubDate>Tue, 03 Nov 2009 18:05:05 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/504120-Enums-are-expensive-in-dictionaries/</guid><evnet:views>114</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/504120/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I was building a cellular automaton earlier (fireflies simulation) and I decided to use a C# enum to represent a fly's current state (Charging, Sensitive, and Flashing). This is fine.
&amp;nbsp;
However when it came to rendering the CA world I needed to map a Color instance to each state, so I created a&amp;#8230;</evnet:previewtext><dc:creator>W3bbo</dc:creator><slash:comments>12</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/504120-Enums-are-expensive-in-dictionaries/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/504120/Trackback.aspx</trackback:ping></item><item><title>Date recovery !!!!!</title><description>&lt;p&gt;SOS!&lt;/p&gt;
&lt;p&gt;I made a serious mistake that all my most important files are lost by accidental deletion,they
are&amp;nbsp; no longer be recovered by the
Windows Operating system.&lt;/p&gt;
&lt;p&gt;is there any way to recover my files?&lt;/p&gt;
&lt;p&gt;I need help! Thanks a lot for any replies.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/504045/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/504045-Date-recovery-/</comments><link>http://channel9.msdn.com/forums/TechOff/504045-Date-recovery-/</link><pubDate>Tue, 03 Nov 2009 12:20:14 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/504045-Date-recovery-/</guid><evnet:views>68</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/504045/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>SOS!
I made a serious mistake that all my most important files are lost by accidental deletion,they
are&amp;nbsp; no longer be recovered by the
Windows Operating system.
is there any way to recover my files?
I need help! Thanks a lot for any replies.</evnet:previewtext><dc:creator>tisesunshine</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/504045-Date-recovery-/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/504045/Trackback.aspx</trackback:ping></item><item><title>The new ipod nano 5th generation video to computer and DVD to ipod?</title><description>&lt;p&gt;hey well i got my ipod nano 5th generation the one with the video camera.&lt;br /&gt;i have heaps of videos that i have taken with it, but i dont no how to get those videos and put them in my computer. they wont show in my itunes wen i plug it in i dont get it, how do i get those videos and put them on my comp.&lt;br /&gt;&lt;br /&gt;I also want to upload a home movie from a DVD to my PC and put it on my IPOD.&lt;br /&gt;&lt;br /&gt;Can anyone please walk me through the steps. I have no clue what I am doing!&lt;/p&gt;&lt;img src="http://channel9.msdn.com/504016/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/504016-The-new-ipod-nano-5th-generation-video-to-computer-and-DVD-to-ipod/</comments><link>http://channel9.msdn.com/forums/TechOff/504016-The-new-ipod-nano-5th-generation-video-to-computer-and-DVD-to-ipod/</link><pubDate>Tue, 03 Nov 2009 08:45:15 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/504016-The-new-ipod-nano-5th-generation-video-to-computer-and-DVD-to-ipod/</guid><evnet:views>59</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/504016/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>hey well i got my ipod nano 5th generation the one with the video camera.i have heaps of videos that i have taken with it, but i dont no how to get those videos and put them in my computer. they wont show in my itunes wen i plug it in i dont get it, how do i get those videos and put them on my&amp;#8230;</evnet:previewtext><dc:creator>nulyjeyo</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/504016-The-new-ipod-nano-5th-generation-video-to-computer-and-DVD-to-ipod/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/504016/Trackback.aspx</trackback:ping></item><item><title>How to put itunes movie and music to non-apple portable player</title><description>&lt;p&gt;I bought some video and audio from itunes and would
like to put them to my portable player,but I am failure, whether they have
protection or format require?---- how can I convert or transfer those files?
Thanks advance!&lt;/p&gt;&lt;img src="http://channel9.msdn.com/503902/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/503902-How-to-put-itunes-movie-and-music-to-non-apple-portable-player/</comments><link>http://channel9.msdn.com/forums/TechOff/503902-How-to-put-itunes-movie-and-music-to-non-apple-portable-player/</link><pubDate>Tue, 03 Nov 2009 02:30:45 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/503902-How-to-put-itunes-movie-and-music-to-non-apple-portable-player/</guid><evnet:views>43</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/503902/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I bought some video and audio from itunes and would
like to put them to my portable player,but I am failure, whether they have
protection or format require?---- how can I convert or transfer those files?
Thanks advance!</evnet:previewtext><dc:creator>panpangege</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/503902-How-to-put-itunes-movie-and-music-to-non-apple-portable-player/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/503902/Trackback.aspx</trackback:ping></item><item><title>MSDN Downloads - Offline?</title><description>&lt;p&gt;Hi guys.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I've been using MSDN downloads and the charming Microsoft Download App for many years now, and I'm pretty certain nothing is up with my end.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I cannot download anything today. It just times out. I've tried from two completely different geographical locations with different ISPs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can't find anything stating that the system is down... anyone know what is up, or seeing the same issue?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Mark.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/503810/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/503810-MSDN-Downloads-Offline/</comments><link>http://channel9.msdn.com/forums/TechOff/503810-MSDN-Downloads-Offline/</link><pubDate>Mon, 02 Nov 2009 18:06:38 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/503810-MSDN-Downloads-Offline/</guid><evnet:views>67</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/503810/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi guys.
&amp;nbsp;
I've been using MSDN downloads and the charming Microsoft Download App for many years now, and I'm pretty certain nothing is up with my end.
&amp;nbsp;
However, I cannot download anything today. It just times out. I've tried from two completely different geographical locations with&amp;#8230;</evnet:previewtext><dc:creator>markcub</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/503810-MSDN-Downloads-Offline/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/503810/Trackback.aspx</trackback:ping></item><item><title>Oracle and Access 2007</title><description>&lt;p&gt;I am working on a project that requires me to pull data from an Oracle database 11i into an access 2007 database. I've been able to configure the ODBC so that I can pull data into Access from tables and views, but I am not able to execute a stored procedure from Access and return data. Is there some trick to this? I've seen some examples of using VB code to do this, but I need this to work for people that are used to doing it through the menu. Got any ideas?&amp;nbsp; Thanks.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/503761/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/503761-Oracle-and-Access-2007/</comments><link>http://channel9.msdn.com/forums/TechOff/503761-Oracle-and-Access-2007/</link><pubDate>Mon, 02 Nov 2009 13:34:53 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/503761-Oracle-and-Access-2007/</guid><evnet:views>53</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/503761/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I am working on a project that requires me to pull data from an Oracle database 11i into an access 2007 database. I've been able to configure the ODBC so that I can pull data into Access from tables and views, but I am not able to execute a stored procedure from Access and return data. Is there some&amp;#8230;</evnet:previewtext><dc:creator>Jeff Wyant</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/503761-Oracle-and-Access-2007/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/503761/Trackback.aspx</trackback:ping></item><item><title>IObservable, IObserver, [Observable]</title><description>&lt;p&gt;I wonder what the reasoning is for not including Observable (Reactive Extensions for .Net) as part of .Net 4.0? Clearly one would want these combinators to start using LINQ or one would most likely build them oneself. I was browsing for Rx as part of .Net 4.0 beta 2 and only found the interfaces. Parallel Extensions for .Net are already part of .Net. I suppose it is still being worked out what combinators to include and specifically how to interact with the parallel extensions, hmm...&lt;/p&gt;
&lt;blockquote&gt;A great example of this is the&amp;nbsp;&lt;a href="http://ping.fm/zPtIR"&gt;Reactive Framework&lt;/a&gt;&amp;nbsp;(RX), which is a library of extension methods (not included as part of .NET 4) that implement the LINQ Standard Query Operators and other useful stream transformation functions for IObservable&amp;lt;T&amp;gt;.&lt;/blockquote&gt;
&lt;p&gt;On the other hand, building this stuff sounds fun. Think of implementing task preemption using both "continuous" (hard) and discrete limits.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/503548/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/503548-IObservableIObserver-without-Observable/</comments><link>http://channel9.msdn.com/forums/TechOff/503548-IObservableIObserver-without-Observable/</link><pubDate>Sat, 31 Oct 2009 20:24:42 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/503548-IObservableIObserver-without-Observable/</guid><evnet:views>130</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/503548/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I wonder what the reasoning is for not including Observable (Reactive Extensions for .Net) as part of .Net 4.0? Clearly one would want these combinators to start using LINQ or one would most likely build them oneself. I was browsing for Rx as part of .Net 4.0 beta 2 and only found the interfaces.&amp;#8230;</evnet:previewtext><dc:creator>Bent Rasmussen</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/503548-IObservableIObserver-without-Observable/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/503548/Trackback.aspx</trackback:ping></item><item><title>Can I deploy reports from VS2008 onto SSRS 2005?</title><description>&lt;p&gt;We have an SSRS 2005 server currently running. We just got VS 2008. Is it possible to have VS 2008 target reports so they will work on 2005 servers?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/503354/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/503354-Can-I-deploy-reports-from-VS2008-onto-SSRS-2005/</comments><link>http://channel9.msdn.com/forums/TechOff/503354-Can-I-deploy-reports-from-VS2008-onto-SSRS-2005/</link><pubDate>Fri, 30 Oct 2009 17:25:54 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/503354-Can-I-deploy-reports-from-VS2008-onto-SSRS-2005/</guid><evnet:views>65</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/503354/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>We have an SSRS 2005 server currently running. We just got VS 2008. Is it possible to have VS 2008 target reports so they will work on 2005 servers?</evnet:previewtext><dc:creator>qwert231</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/503354-Can-I-deploy-reports-from-VS2008-onto-SSRS-2005/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/503354/Trackback.aspx</trackback:ping></item><item><title>This is Wierd! (Works in Query manager Fails in Code)</title><description>&lt;p&gt;Take this simple code snippit&lt;/p&gt;
&lt;p&gt;[code language="csharp"]            List&amp;lt;NJTrackingEntity&amp;gt; result = new List&amp;lt;NJTrackingEntity&amp;gt;();
            try
            {
                SqlConnection cn = new SqlConnection(DBCON());
                cn.Open();
                string sql = "select A.SPECIALPOPULATION as 'CODE'," +
                             "COALESCE(B.DISPDESC,(SELECT TOP 1 C.SITENAME from TblResidentialProvLoginsPgm C " +
                                "LEFT OUTER JOIN xvt_userauthprograms D on " +
                                "C.USERID = D.USERID AND D.PGMINDICATOR = A.SPECIALPOPULATION " +
                                "WHERE C.USERID = D.USERID )," +
                                "(SELECT TOP 1 C.ORG from TBLUSERLOGINS C " +
                                "LEFT OUTER JOIN xvt_userauthprograms D on " +
                                "C.USERID = D.USERID AND D.PGMINDICATOR = A.SPECIALPOPULATION " +
                                "WHERE C.USERID = D.USERID )) as 'DESCRIPTION', " +
                             "A.EFFECTIVEDATE,A.EXPDATE,A.MSPID " +
                             "from dbo.tblMemberSpecialPopulation A " +
                             "LEFT OUTER JOIN dbo.LOOKUPTRACKINGELEMENTS B ON " +
                                "A.SPECIALPOPULATION = B.Code " +
                             "where MEMBERID = @P1 " +
                             "ORDER BY EFFECTIVEDATE DESC,EXPDATE DESC";
                SqlCommand cmd = new SqlCommand(sql, cn);
                //cmd.Parameters.Add("@P1", System.Data.SqlDbType.Int,4,"MEMBERID").Value = Convert.ToInt32(mid);
                cmd.Parameters.Add("@P1", System.Data.SqlDbType.Int, 4, "MEMBERID").Value = mid;

                SqlDataReader r = cmd.ExecuteReader();
                while (r.Read())
                {
                    NJTrackingEntity nj = new NJTrackingEntity();
                    nj.ID = r[4] + "";
                    nj.CODE = r[0] + "";
                    nj.DESCRIPTION = r[1] + "";
                    if (!r.IsDBNull(2))
                        nj.EFFECTIVE = r.GetDateTime(2).ToString("yyyy/MM/dd");
                    if (!r.IsDBNull(3))
                        nj.EXPIRATION = r.GetDateTime(3).ToString("yyyy/MM/dd");
                    result.Add(nj);
                }
                r.Close();
                cmd.Dispose();
                cn.Close();
                cn.Dispose();

            }
            catch (Exception ex)
            {
                NJTrackingEntity nj = new NJTrackingEntity();
                nj.DESCRIPTION = ex.Message;
                result.Add(nj);
            }

            return result;[/code]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For some sets of memberIDs handed to this I get database timeout errors and for others it works just fine.&lt;/p&gt;
&lt;p&gt;Pulling my hair out looking for database tuning bits and what not to make the timeouts go away. I though the only thing&lt;/p&gt;
&lt;p&gt;I could do was to increase the timeout values on the command object. No matteer what I put there though the timeouts persisted&lt;/p&gt;
&lt;p&gt;of course taking longer and longer to return to me the error result.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Query however take out of code and plaaced into Query tools in SQLDev Studio executed quickly and without error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again this only occured with some MemberID values. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I found was very surprising change the code to also include a simple addition to the where clause of 'and 1=1' make the issue&lt;/p&gt;
&lt;p&gt;disappear.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the execution engine for sql commands in .Net was creating some sort of issue that it should not have been doing?&lt;/p&gt;
&lt;p&gt;Makes me wonder where else in the code this kind of crap might be happening....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/503272/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/503272-This-is-Wierd-Works-in-Query-manager-Fails-in-Code/</comments><link>http://channel9.msdn.com/forums/TechOff/503272-This-is-Wierd-Works-in-Query-manager-Fails-in-Code/</link><pubDate>Fri, 30 Oct 2009 13:03:48 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/503272-This-is-Wierd-Works-in-Query-manager-Fails-in-Code/</guid><evnet:views>133</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/503272/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Take this simple code snippit
[code language="csharp"]            List&amp;lt;NJTrackingEntity&amp;gt; result = new List&amp;lt;NJTrackingEntity&amp;gt;();
            try
            {
                SqlConnection cn = new SqlConnection(DBCON());
                cn.Open();
                string sql = "select&amp;#8230;</evnet:previewtext><dc:creator>harlock123</dc:creator><slash:comments>24</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/503272-This-is-Wierd-Works-in-Query-manager-Fails-in-Code/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/503272/Trackback.aspx</trackback:ping></item><item><title>Visual Studio 2008 Team and Windows 7</title><description>&lt;p&gt;Any bugs lately ?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/503081/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/503081-Visual-Studio-2008-Team-and-Windows-7/</comments><link>http://channel9.msdn.com/forums/TechOff/503081-Visual-Studio-2008-Team-and-Windows-7/</link><pubDate>Thu, 29 Oct 2009 21:02:23 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/503081-Visual-Studio-2008-Team-and-Windows-7/</guid><evnet:views>104</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/503081/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Any bugs lately ?</evnet:previewtext><dc:creator>Rajiv Singh Suwal</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/503081-Visual-Studio-2008-Team-and-Windows-7/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/503081/Trackback.aspx</trackback:ping></item><item><title>"Any CPU" - Is it evil?</title><description>&lt;p&gt;Having recently upgraded to a 64 bit system, I encountered a problem of which I was ignorant before.&amp;nbsp; The default setting of a Visual Studio project is "Any CPU".&amp;nbsp; On a 64 bit system this means the program will automatically run as a 64 bit application.&amp;nbsp; On a 32 bit system it will automatically run as a 32 bit application.&amp;nbsp; This sounds ideal.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Problem #1:&amp;nbsp; Data residing in "legacy" data sources such as Excel documents, Access data, or third party databases must run as 32 bit clients.&amp;nbsp; The "Any CPU" setting causes the previously working code to stop working.&amp;nbsp; Changing your application to 32 bit enables this code to work again.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Problem #2:&amp;nbsp; Third party DLL's, which are 32 bit in nature, cannot be accessed from 64 bit clients.&amp;nbsp; I have yet to see any workarounds for this that actually work.&amp;nbsp; Apparently .NET DLL's will auto-adjust if compiled with "Any CPU" and called from a 32 bit or 64 bit host client.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Problem #3:&amp;nbsp; The Click Once deployment process seems to be broken.&amp;nbsp; Applications deployed in the field, which used "Any CPU" cannot be updated.&amp;nbsp; Changing your program to "32 bit" (or 64 bit) and pressing "publish" warns you that your version differs than your previous publish.&amp;nbsp; If you actually tell it to go ahead your clients will lose all linkage to your project and require manual uninstall/re-installs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a temporary workaround I have started coding all my deployed code, which requires 32 bit data access, as a 32 bit application.&amp;nbsp; I am no longer using the "Any CPU" setting on applications. Legacy programs deployed already, with the "Any CPU" option, are left in the "Any CPU" setting knowing that it will break on 64 bit systems.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would prefer to put all my legacy 32 bit code into a DLL however that quickly renders it useless as 64 bit clients appear to have no means of communicating with 32 bit code.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have yet to come up with any solution to my deployment problems.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does anyone have some advice on these or similar problem?&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502739/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502739-Any-CPU-Is-it-evil/</comments><link>http://channel9.msdn.com/forums/TechOff/502739-Any-CPU-Is-it-evil/</link><pubDate>Wed, 28 Oct 2009 20:14:45 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502739-Any-CPU-Is-it-evil/</guid><evnet:views>212</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502739/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Having recently upgraded to a 64 bit system, I encountered a problem of which I was ignorant before.&amp;nbsp; The default setting of a Visual Studio project is "Any CPU".&amp;nbsp; On a 64 bit system this means the program will automatically run as a 64 bit application.&amp;nbsp; On a 32 bit system it will&amp;#8230;</evnet:previewtext><dc:creator>lensman</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502739-Any-CPU-Is-it-evil/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502739/Trackback.aspx</trackback:ping></item><item><title>XSLT Multiple inner nodes</title><description>&lt;p&gt;im looking to format something along the lines of this&lt;/p&gt;
&lt;p&gt;&amp;lt;a&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;b&amp;lt;/b&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;c&amp;lt;/b&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;a&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;b&amp;lt;/b&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;c&amp;lt;/b&amp;gt;&lt;/p&gt;
&lt;p&gt;
&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;a&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;b&amp;lt;/b&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;c&amp;lt;/b&amp;gt;&lt;/p&gt;
&lt;p&gt;
&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use the For-each for the &amp;lt;a&amp;gt;'s but im not sure how to show multiples of &amp;lt;b&amp;gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502680/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502680-XSLT-Multiple-inner-nodes/</comments><link>http://channel9.msdn.com/forums/TechOff/502680-XSLT-Multiple-inner-nodes/</link><pubDate>Wed, 28 Oct 2009 13:41:11 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502680-XSLT-Multiple-inner-nodes/</guid><evnet:views>107</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502680/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>im looking to format something along the lines of this
&amp;lt;a&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;b&amp;lt;/b&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;c&amp;lt;/b&amp;gt;
&amp;lt;/a&amp;gt;
&amp;lt;a&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;b&amp;lt;/b&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;c&amp;lt;/b&amp;gt;

&amp;lt;/a&amp;gt;
&amp;lt;a&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;b&amp;lt;/b&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;#8230;</evnet:previewtext><dc:creator>NMGod</dc:creator><slash:comments>6</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502680-XSLT-Multiple-inner-nodes/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502680/Trackback.aspx</trackback:ping></item><item><title>Creating a PDF Editor in C# using iTextSharp Library</title><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have a requirement of writing a PDF Editor program that will also enable users to add various annotations like Sticky Note, Text, Lines, Shapes, Free Hand graphics etc, together with allowing user to copy text from the PDF and pasting it anywhere, highlighting the text or other sections in the PDF.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was going through the web trying to locate any library that can help us do that. I found iTextSharp library that is suggested to have sufficeint features to do all the above that I mentioned.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to find out someone who might have had the similar requirement and have experience of implementing the same using C#.&lt;/p&gt;
&lt;p&gt;Any help will be appreciable.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sameer&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502672/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502672-Creating-a-PDF-Editor-in-C-using-iTextSharp-Library/</comments><link>http://channel9.msdn.com/forums/TechOff/502672-Creating-a-PDF-Editor-in-C-using-iTextSharp-Library/</link><pubDate>Wed, 28 Oct 2009 11:18:21 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502672-Creating-a-PDF-Editor-in-C-using-iTextSharp-Library/</guid><evnet:views>109</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502672/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi,
We have a requirement of writing a PDF Editor program that will also enable users to add various annotations like Sticky Note, Text, Lines, Shapes, Free Hand graphics etc, together with allowing user to copy text from the PDF and pasting it anywhere, highlighting the text or other sections in&amp;#8230;</evnet:previewtext><dc:creator>Sameer Goyal</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502672-Creating-a-PDF-Editor-in-C-using-iTextSharp-Library/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502672/Trackback.aspx</trackback:ping></item><item><title>Windows XP didn't want to shut down</title><description>&lt;p&gt;I've got a Windows XP Pro box at work.&amp;nbsp; Recently, it just hasn't wanted to shut down, when I try to make it do a reboot or a shut down.&amp;nbsp; Instead it just sits there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why's that?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502469/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502469-Windows-XP-didnt-want-to-shut-down/</comments><link>http://channel9.msdn.com/forums/TechOff/502469-Windows-XP-didnt-want-to-shut-down/</link><pubDate>Tue, 27 Oct 2009 14:18:47 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502469-Windows-XP-didnt-want-to-shut-down/</guid><evnet:views>94</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502469/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've got a Windows XP Pro box at work.&amp;nbsp; Recently, it just hasn't wanted to shut down, when I try to make it do a reboot or a shut down.&amp;nbsp; Instead it just sits there.
&amp;nbsp;
Why's that?
&amp;nbsp;</evnet:previewtext><dc:creator>RodAtWork</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502469-Windows-XP-didnt-want-to-shut-down/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502469/Trackback.aspx</trackback:ping></item><item><title>WCF with ISA for URL redirection</title><description>&lt;p&gt;In our production farm, internet
access is routed through ISA which intern routes the requests to a web
application hosting a WCF service on IIS7. &lt;/p&gt;
&lt;p&gt;The service is hosted with a host
header (KMServices.hcl.in) and has a SSL certificate installed on that. it
working fine using netTCP binding with windows Authentication over intranet. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This service is not working over
internet &amp;ndash; ISA is routing the requests coming for &lt;a href="https://km.hcl.in/arKMedesServices/arKMarkServices.svc"&gt;https://km.hcl.in/arKMedesServices/arKMarkServices.svc&lt;/a&gt;
to &lt;a href="http://KMServices.hcl.in/arKMarkServices.svc"&gt;http://KMServices.hcl.in/arKMarkServices.svc&lt;/a&gt;
using wsHttpBinding and we have a listen URI
configured properly in web.config of the service and a clientVia URL on the
client web.config. I am even unable to add the reference using VS 2008 from
Internet.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error Message&amp;nbsp; - The
remote name could not be resolved: &amp;lsquo;KMServices.hcl.in&amp;rsquo;. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We need to get this working over
internet using Windows Authentication only as the users will be accessing the client
application from internet but will be logging in to the system with their
domain credentials only.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Pls. help.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502418/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502418-WCF-with-ISA-for-URL-redirection/</comments><link>http://channel9.msdn.com/forums/TechOff/502418-WCF-with-ISA-for-URL-redirection/</link><pubDate>Tue, 27 Oct 2009 08:05:14 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502418-WCF-with-ISA-for-URL-redirection/</guid><evnet:views>84</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502418/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>In our production farm, internet
access is routed through ISA which intern routes the requests to a web
application hosting a WCF service on IIS7. 
The service is hosted with a host
header (KMServices.hcl.in) and has a SSL certificate installed on that. it
working fine using netTCP binding with&amp;#8230;</evnet:previewtext><dc:creator>Anupam Shrivastava</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502418-WCF-with-ISA-for-URL-redirection/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502418/Trackback.aspx</trackback:ping></item><item><title>Getting a "rrtray.exe has stopped working" error</title><description>&lt;p&gt;One of my PCs, which is running Vista Ultimate, always comes up with an error that says, "rrtray.exe has stopped working".&amp;nbsp; I believe it is something called the MSN Remote Recording is failing.&amp;nbsp; I'm not sure what it is, and whatever it is, we haven't really used it, so how do I disable it so it no longer troubles us?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502392/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502392-Getting-a-rrtrayexe-has-stopped-working-error/</comments><link>http://channel9.msdn.com/forums/TechOff/502392-Getting-a-rrtrayexe-has-stopped-working-error/</link><pubDate>Tue, 27 Oct 2009 03:04:15 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502392-Getting-a-rrtrayexe-has-stopped-working-error/</guid><evnet:views>67</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502392/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>One of my PCs, which is running Vista Ultimate, always comes up with an error that says, "rrtray.exe has stopped working".&amp;nbsp; I believe it is something called the MSN Remote Recording is failing.&amp;nbsp; I'm not sure what it is, and whatever it is, we haven't really used it, so how do I disable it&amp;#8230;</evnet:previewtext><dc:creator>Doctor Who</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502392-Getting-a-rrtrayexe-has-stopped-working-error/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502392/Trackback.aspx</trackback:ping></item><item><title>Microsoft Charting Controls Licensing</title><description>&lt;p&gt;What's strange is how it's impossible to find licensing information about the Microsoft Charting Control library that they got off Dundas. By distributing it gratis they're costing Dundas lots in lost-sales (since their cheapest license is about $699) yet no distribution of the library comes with a license agreement statement. The library installer only comes with a single-paragraph boilerplate that just says that if you don't already have a license then you can't install it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I ask because I made some modifications to the library (which I assume would be covered under the legal protection that reverse-engineering for interopability has) but I want to know what my rights are w.r.t. redistribution.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502375/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502375-Microsoft-Charting-Controls-Licensing/</comments><link>http://channel9.msdn.com/forums/TechOff/502375-Microsoft-Charting-Controls-Licensing/</link><pubDate>Mon, 26 Oct 2009 23:08:12 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502375-Microsoft-Charting-Controls-Licensing/</guid><evnet:views>85</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502375/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>What's strange is how it's impossible to find licensing information about the Microsoft Charting Control library that they got off Dundas. By distributing it gratis they're costing Dundas lots in lost-sales (since their cheapest license is about $699) yet no distribution of the library comes with a&amp;#8230;</evnet:previewtext><dc:creator>W3bbo</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502375-Microsoft-Charting-Controls-Licensing/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502375/Trackback.aspx</trackback:ping></item><item><title>Thread Pre-Emption</title><description>&lt;p&gt;What is the best practice for thread pre-emption/cancellation? I have the following scenario: (And do not yet use Parallel Extensions for .Net)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An external service call often takes a long time to complete (as little as 1 second and as high as 10+ seconds). This brings an unacceptable latency down to the UI layer (the UI is in a different application using a web service component written in .Net using COM interop.) Anyway, the base problem is a single call which has a variable latency and the code cannot be granularized further as the latency is external.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So clearly the call needs to take place asynchronously. This is now almost implemented. The problem then arises, what to do with cancellation. If the code was fine-grained it would be possible to make it regularly read a cancellation&amp;nbsp;state variable. This is not the case - the call is "monolithic" - so such a variable cannot be used. Then looking at the Thread API there is a method called Abort().&amp;nbsp;Absent a brutal sounding method like Kill() (which would obviously also be evil), I expect this to be the suitable method for this scenario. Right or?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use a "synchronization counter" to ensure the worker thread doesn't modify the environment if it accidentally completes post-cancellation.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502335/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502335-Thread-Pre-Emption/</comments><link>http://channel9.msdn.com/forums/TechOff/502335-Thread-Pre-Emption/</link><pubDate>Mon, 26 Oct 2009 20:12:01 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502335-Thread-Pre-Emption/</guid><evnet:views>106</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502335/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>What is the best practice for thread pre-emption/cancellation? I have the following scenario: (And do not yet use Parallel Extensions for .Net)
&amp;nbsp;
An external service call often takes a long time to complete (as little as 1 second and as high as 10+ seconds). This brings an unacceptable latency&amp;#8230;</evnet:previewtext><dc:creator>Bent Rasmussen</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502335-Thread-Pre-Emption/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502335/Trackback.aspx</trackback:ping></item><item><title>DDOB (Distributed Denial of Budget Attack) to Cloud IDEA</title><description>&lt;p&gt;&lt;strong&gt;Denial of Budget Attack&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hello Sirs. I want to explain new types of the attacks. Kind of the attacks might be called DDOB (&lt;strong&gt;distributed denial of Budget Attack&lt;/strong&gt;).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our Primary aim is Azure Microsoft's new Initiate.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Briefly what is an Azure?&amp;nbsp;&amp;nbsp; Azure is an Advanced Hosting (Marketing name Cloud).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So Azure is a Hosting Plan that you bought for hosting you application. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You have flexible hosting environment clustering over many datacenter is the world. (Up time is more than 100%).&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Access on your server not depended on single connection line. (Access from every were)&lt;/p&gt;
&lt;p&gt;3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You have dynamically growing disk space &lt;/p&gt;
&lt;p&gt;4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Possibility dynamically changes your Application performance by attaching more CPU power to your hosting plan. &lt;/p&gt;
&lt;p&gt;5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; By design have n-tier application&lt;/p&gt;
&lt;p&gt;6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Already installed Microsoft Server Solutions.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;All this are in quite good price. Even more:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You do not pay for unused space&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;For unused traffic&lt;/p&gt;
&lt;p&gt;3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;For CPU Idle time.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You pay only for those are you using. See: &lt;a href="http://www.microsoft.com/windowsazure/pricing/"&gt;http://www.microsoft.com/windowsazure/pricing/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Windows Azure: Compute = $0.12 / hour, Storage = $0.15 / GB stored / month, Storage Transactions = $0.01 / 10K, Bandwidth = $0.10 in / $0.15 out / GB. &amp;hellip;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All above sounds great, is it?&amp;nbsp; You may think not to build own datacenter any more, and host all your applications in cloud. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes but Cloud is so great idea it might not be fully true.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In real live we have groups of the people have interest to destroy our business. They try finding new ways to damage our every day works. Now I will explain how it is possible attack Cloud Application.&lt;/p&gt;
&lt;p&gt;Assume you host your Application in Cloud. You have 100 000 Customers, your estimate outcome per month assume is 1000$ (cloud service cost).&amp;nbsp; As Attacker I may make hundred accounts and make fake requests to your Application. &lt;/p&gt;
&lt;p&gt;From Application point this requests is garbage, and it will ignored by them or even more store it in Log file.&lt;/p&gt;
&lt;p&gt;From Cloud this is real traffic and real CPU Calls all that cost real money.&lt;/p&gt;
&lt;p&gt;By end of the month you will receive check from Azure Service much more than you expected 100 000 000$. &lt;/p&gt;
&lt;p&gt;Company has no possibility to pay kid of money to Microsoft (Azure), and Company is bankrupt.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;DDOB&lt;/strong&gt; attack is done.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Think about it. If Microsoft will not change Payment terms and will keep payment calculation as it is. Kind attacks will be always successful.&lt;/p&gt;
&lt;p&gt;Is it not detectable attack by Microsoft because is not a real DDOS attack, it attacks only single Application and keeps it online (With helping Cloud Power). &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for Comments.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502318/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502318-DDOB-Distributed-Denial-of-Budget-Attack-to-Cloud-IDEA/</comments><link>http://channel9.msdn.com/forums/TechOff/502318-DDOB-Distributed-Denial-of-Budget-Attack-to-Cloud-IDEA/</link><pubDate>Mon, 26 Oct 2009 19:17:47 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502318-DDOB-Distributed-Denial-of-Budget-Attack-to-Cloud-IDEA/</guid><evnet:views>123</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502318/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Denial of Budget Attack
&amp;nbsp;
Hello Sirs. I want to explain new types of the attacks. Kind of the attacks might be called DDOB (distributed denial of Budget Attack).
&amp;nbsp;
Our Primary aim is Azure Microsoft's new Initiate.
&amp;nbsp;
Briefly what is an Azure?&amp;nbsp;&amp;nbsp; Azure is an Advanced Hosting&amp;#8230;</evnet:previewtext><dc:creator>Irakli_Lomidze</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502318-DDOB-Distributed-Denial-of-Budget-Attack-to-Cloud-IDEA/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502318/Trackback.aspx</trackback:ping></item><item><title>XAMLTOCODE</title><description>&lt;p&gt;Does anyone know of a utility to convert XAML into CSharp?&amp;nbsp; (assuming this is possible?)&lt;/p&gt;&lt;img src="http://channel9.msdn.com/502234/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/502234-XAMLTOCODE/</comments><link>http://channel9.msdn.com/forums/TechOff/502234-XAMLTOCODE/</link><pubDate>Mon, 26 Oct 2009 14:17:26 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/502234-XAMLTOCODE/</guid><evnet:views>101</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/502234/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Does anyone know of a utility to convert XAML into CSharp?&amp;nbsp; (assuming this is possible?)</evnet:previewtext><dc:creator>Ian Walker</dc:creator><slash:comments>6</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/502234-XAMLTOCODE/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/502234/Trackback.aspx</trackback:ping></item><item><title>Windows 7 Backup error 0x80070005</title><description>&lt;p&gt;Windows 7 suggested that I setup a backup job, to backup to an external hard drive.&amp;nbsp; I've got such a drive and thought that was a good idea, so I setup the default job that Windows 7 Backup suggested and let it run.&amp;nbsp; It failed with a 0x80070005 error ("Access is denied").&amp;nbsp; I'm not sure why access would be denied, as I supplied it my own credentials and I'm an administrator.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, what's the problem?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/501946/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/501946-Windows-7-Backup-error-0x80070005/</comments><link>http://channel9.msdn.com/forums/TechOff/501946-Windows-7-Backup-error-0x80070005/</link><pubDate>Sun, 25 Oct 2009 00:34:12 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/501946-Windows-7-Backup-error-0x80070005/</guid><evnet:views>219</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/501946/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Windows 7 suggested that I setup a backup job, to backup to an external hard drive.&amp;nbsp; I've got such a drive and thought that was a good idea, so I setup the default job that Windows 7 Backup suggested and let it run.&amp;nbsp; It failed with a 0x80070005 error ("Access is denied").&amp;nbsp; I'm not&amp;#8230;</evnet:previewtext><dc:creator>Doctor Who</dc:creator><slash:comments>9</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/501946-Windows-7-Backup-error-0x80070005/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/501946/Trackback.aspx</trackback:ping></item><item><title>Windows 7 + Divx = Sync Issues</title><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Has anyone else found that the the Divx codec built into Windows 7 x64 RTM causes the audio and video to go out of sync....the video is about half a second behind.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;&lt;img src="http://channel9.msdn.com/501863/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/501863-Windows-7--Divx--Sync-Issues/</comments><link>http://channel9.msdn.com/forums/TechOff/501863-Windows-7--Divx--Sync-Issues/</link><pubDate>Sat, 24 Oct 2009 14:39:42 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/501863-Windows-7--Divx--Sync-Issues/</guid><evnet:views>142</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/501863/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hey,
&amp;nbsp;
Has anyone else found that the the Divx codec built into Windows 7 x64 RTM causes the audio and video to go out of sync....the video is about half a second behind.
&amp;nbsp;
Cheers,
&amp;nbsp;
Alex</evnet:previewtext><dc:creator>alexolivier</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/501863-Windows-7--Divx--Sync-Issues/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/501863/Trackback.aspx</trackback:ping></item><item><title>Resizing a control when resizing the window</title><description>&lt;p&gt;hi,&lt;br /&gt;&lt;br /&gt;I have a WPF application with a userinterface created in Expression Blend. I have various controls on the window along with a datagrid. When I resize the window I want the datagrid only to be resized along with it. How would I accomplish this?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;geekChick&lt;/p&gt;&lt;img src="http://channel9.msdn.com/501741/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/501741-Resizing-a-control-when-resizing-the-window/</comments><link>http://channel9.msdn.com/forums/TechOff/501741-Resizing-a-control-when-resizing-the-window/</link><pubDate>Fri, 23 Oct 2009 20:19:47 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/501741-Resizing-a-control-when-resizing-the-window/</guid><evnet:views>76</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/501741/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>hi,I have a WPF application with a userinterface created in Expression Blend. I have various controls on the window along with a datagrid. When I resize the window I want the datagrid only to be resized along with it. How would I accomplish this?Thanks,geekChick</evnet:previewtext><dc:creator>geekchick</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/501741-Resizing-a-control-when-resizing-the-window/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/501741/Trackback.aspx</trackback:ping></item><item><title>Weird threading problem?</title><description>&lt;p&gt;I've got a WPF&amp;nbsp;app that does some major multi-threading in its worker classes. My problem is that as soon as all of the worker threads complete, the app shuts down. No errors, no exceptions, just shuts down the app and throws me back into the IDE.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After confirming that the threading is indeed working as intended with some debug.print statements, I am at a loss as to why this is happening.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any ideas on further debugging steps?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The basic structure is this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;interface bound to "runner" object&lt;/p&gt;
&lt;p&gt;runner holds collection of "sample" objects and spawns a thread for each sample&lt;/p&gt;
&lt;p&gt;each sample holds as collection of "combinations" and spawns a thread for each combination&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm using events to track when threads finish and then when everything is finished, I update the interface. Immediately after this step, the application shuts down.&lt;/p&gt;&lt;img src="http://channel9.msdn.com/501693/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/501693-Weird-threading-problem/</comments><link>http://channel9.msdn.com/forums/TechOff/501693-Weird-threading-problem/</link><pubDate>Fri, 23 Oct 2009 16:29:49 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/501693-Weird-threading-problem/</guid><evnet:views>219</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/501693/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I've got a WPF&amp;nbsp;app that does some major multi-threading in its worker classes. My problem is that as soon as all of the worker threads complete, the app shuts down. No errors, no exceptions, just shuts down the app and throws me back into the IDE.
&amp;nbsp;
After confirming that the threading is&amp;#8230;</evnet:previewtext><dc:creator>Scott</dc:creator><slash:comments>23</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/501693-Weird-threading-problem/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/501693/Trackback.aspx</trackback:ping></item></channel></rss>