As Life Goes Digital

As Life Goes Digital

Technology, Cricket, Deals, Immigration etc …


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


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=""> <s> <strike> <strong>