Internal Error.
-
posted it long time back in lounge but still deserves to be posted here Our customer reported once that the program we shipped is corrupting his windows somehow considering it was simple data processing application i was dazed and confused so i asked him what happens he said windows is showing a Message box "Internal windows error, please restart"...... six hours later i found this in the code
try
{
.
.
.
}
catch(...)
{
MessageBox("Internal windows error, please restart");
}i was so mad partly at the *briliant coder* who wrote it and partly at myself that i didn't enforce code reviews before shipping to his defense he said "i didn't think an exception could happen there" for people who care it was a Divide by zero exception
**I dislike feeling at home when i am abroad.
** -
posted it long time back in lounge but still deserves to be posted here Our customer reported once that the program we shipped is corrupting his windows somehow considering it was simple data processing application i was dazed and confused so i asked him what happens he said windows is showing a Message box "Internal windows error, please restart"...... six hours later i found this in the code
try
{
.
.
.
}
catch(...)
{
MessageBox("Internal windows error, please restart");
}i was so mad partly at the *briliant coder* who wrote it and partly at myself that i didn't enforce code reviews before shipping to his defense he said "i didn't think an exception could happen there" for people who care it was a Divide by zero exception
**I dislike feeling at home when i am abroad.
**While I was module lead in my [previous organization](<a href=)[^], during peer code review, I found one developer doing this
try { opendb(); } catch () { try { opendb() } catch () { throw ... } }
The purpose of opening connection in catch and again catching it. He couldn't answer why he coded that way! :confused: :)Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
While I was module lead in my [previous organization](<a href=)[^], during peer code review, I found one developer doing this
try { opendb(); } catch () { try { opendb() } catch () { throw ... } }
The purpose of opening connection in catch and again catching it. He couldn't answer why he coded that way! :confused: :)Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
posted it long time back in lounge but still deserves to be posted here Our customer reported once that the program we shipped is corrupting his windows somehow considering it was simple data processing application i was dazed and confused so i asked him what happens he said windows is showing a Message box "Internal windows error, please restart"...... six hours later i found this in the code
try
{
.
.
.
}
catch(...)
{
MessageBox("Internal windows error, please restart");
}i was so mad partly at the *briliant coder* who wrote it and partly at myself that i didn't enforce code reviews before shipping to his defense he said "i didn't think an exception could happen there" for people who care it was a Divide by zero exception
**I dislike feeling at home when i am abroad.
** -
Logically Thinking -- True. But sometimes, throws exceptions. :)
Vasudevan Deepak Kumar Personal Homepage Tech Gossips