Visual C# Express Crashes with 11 lines of code

+3 George Williams · September 12, 2014
So well, my C# Express version crashes every time I run my 11 lines of code. Im pretty sure its an exploitable vulnerability but im just making sure:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
    class Program
        static void Main(string[] args)
            string[] Names = { "Bob", "Adam", "Joe" };
            int i = 0;
            if (Console.ReadLine() == Names[0])
                while (i < 100)

So would be appreciated as to whether this is a stack overflow of some sorts or is it just ah,qanything else

Post a Reply


Oldest  Newest  Rating
+1 Eugene Botma · September 13, 2014
It runs without a problem on visual studio ultimate 2010 and 2012
+1 George Williams · September 13, 2014
I knew it would simply because its "Ultimate" and they are making something to be sold :), also I've managed to write a Ruby script that can crash it remotely...not much but im pretty sure I can do better
0 Chris Blum · September 15, 2014
This doesn't crash for me on Visual Studio 2012.
Console pops open with no text.
What exactly is happening when you run it?
The if statement wouldn't ever name the names[0] array.
+1 George Williams · September 26, 2014
Visual Studio and Express are tow different things, I'm trying to tell you all that it only happens in the express version
0 Chris Blum · September 26, 2014
What happens if you put a Console.readline(); before the if statement?
I don't know if this is a crash or if Express is just saying your code doesn't actually do anything.
  • 1



C# is an object-oriented language designed for improving the development of web applications.