Simply Stu The Goat Goes Straight to your Head

Error

Thursday 9th October

Sorry. Geek alert.

We found this…

void log(string message)
{
   try
   {
      blah blah blah
   }
   catch (Exception ex)
   {
      this.log("An exception occurred in logging : {0}" + ex.Message);
   }
}

Written by stu

October 9th, 2008 at 4:12 pm

Posted in Coding, Foolish Errors, Geek

7 Responses to 'Error'

Subscribe to comments with RSS

  1. Well, thinking about it, it looks like “blah blah blah” compiles. Which language is this in???

    Or is it a macro?

    #define blah printf(message);

    That would do it.

    Oh - hang on, you’re meaning that there’s some real code in there, which you have replaced with “blah blah blah” for the purposes of blogging?

    I’ll come in again.

    Simon's Tall

    9 Oct 08 at 9:07 pm

  2. Egads, that’s silly.

    Simon's Tall

    9 Oct 08 at 9:07 pm

  3. Round and round we go… Belt, braces and big bulldog clips!

    Sam

    10 Oct 08 at 7:17 am

  4. Very silly, the log command doesn’t event take formatting parameters!

    ;-)

    Matt

    10 Oct 08 at 7:17 am

  5. Boom!

    John

    10 Oct 08 at 8:31 am

  6. Actually, it’ll take a while to run out of stack space, so it’s more like:

    tick, tick, tick, tick, Boom!

    Simon's Tall

    10 Oct 08 at 4:28 pm

  7. You’re right, Simon’s Tall… we could actually hear the machine creaking at the seams before it exploded into a million shards.

    stu

    10 Oct 08 at 4:29 pm

Leave a Reply