Console applications end when the program completes, try this;
a) Open Visual Studio & create a new Console application
b) Enter the following in the Main method
static void Main(string[] args)
{
Console.WriteLine("Hullo World");
}
c) Compile the application
d) Browse to the executable in Windows & double-click - a console window will appear and disappear.
This is how a console application works.
If you were to run it via the command prompt you will see the text "Hullo World" & you would return to the command prompt.
If you want the application to wait until you do something edit the above code as follows;
static void Main(string[] args)
{
Console.WriteLine("Hullo World");
Console.WriteLine("Press any key to exit...");
Console.ReadyKey();
}
Now when you run it via double-click the application will display your console window & then wait until you press any key before closing.
If you run it at the command prompt you will still see "Hullo World" and "Press any key to exit" and you will need to press a key to return to the command prompt.
Debug your existing console application to see why it is not "closing" itself
Kind Regards