As Life Goes Digital

As Life Goes Digital

Deals, Cricket, Immigration and MBA


Software Code that Caused Zune Frozen

Curious to know what caused Apple’s iPod rival Microsoft’s Zune 30GB frozen issue — here is for those technical minds.

If you are a programmer or know a bit of C-Language code then here is piece of code that made Zune stop working :

year = ORIGINYEAR; /* = 1980 */

while (days > 365){    if (IsLeapYear(year))    {        if (days > 366)        {            days -= 366;            year += 1;        }    }    else    {        days -= 365;        year += 1;    }}

On 366 th day the “if (days > 366)” will stop subtracting anything if the loop happens to be on a leap year. That’s where it enters infinite loop.

Come 2012 we will see this problem again.

Source : Zuneboards

Related Posts : Zune 30GB Frozen issue cause and fixes


EMAIL NEWSLETTER

Your Email Address:

Delivered by FeedBurner

Related posts:

  1. 30GB Zune stopped working – Causes & Workarounds – December 31 2008
  2. Black Friday 2007 MP3 players of iPod,Zune,Sandisk Sansa,Creative Labs Zen deals
  3. Free Walgreens 8 x 10 photo promo code – December 20 2008
  4. Turn off Check Engine light and diagnose problems with trouble code reader
  5. Does Deccan Traps of India caused Dinosaurs extinction ?

Posted By: Kalyan | Date: January 1, 2009 | Categories: Uncategorized
Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>