Wednesday, December 17, 2008

What the hell is this .NET !!!

ayyo, ayyo...... hhhhhhhhhhhhoooooooo..

pppppppprrrrrrrrrrrrrrpppp...

can anybody tell me why the following code is running perfectly in debug mode and not in release mode???? .....

class Program
{
      static void Main(string[] args)
      {
            Console.WriteLine("starting");
            test(null);
            Console.WriteLine("finished");
            Console.ReadLine();
      }

      static void test(string x)
      {
            try
            {
                  for (int j = 0; j < 10000; j++)
                  {
                        if (String.IsNullOrEmpty(x))
                        {
                              //TODO:
                        }
                  }
            }
            catch (Exception ex)
            {
                  Console.WriteLine(ex.Message);
            }
      }

}

Build the application in Release mode and run the exe to find the error... ...



Evvalavo pannittenga, etha konjam solve pannungalen.......

No comments: