Jump to content

ZUNE Froze Up!!!!!


Chrome

Recommended Posts

They found the bug. It's a leap year bug:

Source code of the offending bug: http://www.crunchgear.com/2008/12/31/zune-bug-explained-in-detail/

Leap year function

Well, I’ve got the code here and it’s very simple, really; if you’ve

taken an introductory programming class, you’ll see the error right

away.


year = ORIGINYEAR; /* = 1980 */

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

You can see the details heret.gif, but the important bit is that today, the day count is 366. As you can see, the leap year is accounted for, but int “days” is too big for the main while loop to end

the “if (days > 366)” has no else condition. So the thing just keeps

running and running… until 24 hours have passed and int day receives a

new value. At least, I think that’s what happens (it’s been a while

since CS101).

Link to comment
Share on other sites

hey chrome, its pretty easy to fix, you have to take the battery out, pop the black plastic piece out around the port with a precision screwdriver, take the two screws out, pry the cover off with a guitar pick or screwdriver, follow the battery cable, lift up on the brown clip to disconnect the battery, wait a few seconds, and plug it back in. Reassemble it, and your good to go!

edit: never mind i guess microsoft fixed it for everyone, it took me forever to figure out how to get inside of that thing...bastards

Edited by jermattak
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...