29 Mar 2014



The Sisyphussian Bug

If you have been following the weekly reports, you know that I have been having issues with the focus manager.

Well, this week I redesigned part of the focus manager, improving the structure so that it has more accurate information of what’s happening with the menus. While improving the code, I also fixed some bugs in the code.

By Wednesday, I had what appeared to be working code. While running it in Windows 7, everything seemed to work, both in the start menu and the menu bar. But then after commiting (for backup purposes), I copied the files over to win2003, and when I ran it there, I noticed a bug. After moving the cursor to one of the menu items that didn’t open a submenu, moving to another item in the menubar would cause the menu to close without opening the other menu!

I spent some time trying to analyse what could be different between Windows 2003 and Windows 7, and then it turns out it also happens in Win7, except since the Favorites menu has more items, I had never hovered the lower items. It was then that I noticed another bug: the Favorites menu, like the start menu, has two toolbars: One with static items, and one with dynamic (shell folder) items.

The week was not a waste, though. I *have* been fixing bugs, the code *has* been improving, it’s just that the bugs I fixed are not the bugs I was aiming for.

This would be the face I was making when I was trying to figure out the bug… if I was a cat:

In case anyone wonders whatthe title is about, quoting wikipedia:

"In Greek mythology Sisyphus (/ˈsɪsɪfəs/; Greek: Σίσυφος, Sísyphos) was a king of Ephyra (now known as Corinth) punished for chronic deceitfulness by being compelled to roll an immense boulder up a hill, only to watch it roll back down, and to repeat this action forever."

Discussion: https://www.reactos.org/forum/viewtopic.php?f=2&t=13177

This blog post represents the personal opinion of the author and is not representative of the position of the ReactOS Project.