<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=17944011&amp;blogName=As+Life+Goes+Digital+%3A+Your+personal+...&amp;publishMode=PUBLISH_MODE_FTP&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;homepageUrl=http%3A%2F%2Fwww.kalyansuman.com%2F&amp;blogLocale=en_US&amp;searchRoot=http%3A%2F%2Fblogsearch.google.com%2F" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" title="Blogger Navigation and Search"></iframe> <div></div>

As Life Goes Digital

Your personal information guide for Deals, Cricket, MBA and Immigration related
News, tips and tricks


Software Code that Caused Zune Frozen

Send me email updates:

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

Labels: ,

written by Kalyan @ 4:11 PM,

»

Post a Comment

<< Home

© 2008 As Life Goes Digital : Your personal information guide - Cricket, Deals, MBA, Immigration | Design by Andreas Viklund. Blogger Templates ported by GeckoandFly No part of the content or the blog may be reproduced without prior written permission. This site acts as intermediary and contain links to third party web sites. Kalyansuman.com or it's domain pointers neither endorses or gaurantees any offerings/streamings from third party providers and is not liable for the failure of their products and services.
We use third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.