问题
Why does my game crash when I add Console.ReadLine() in program.cs right before the game using statement.
using System;
namespace MyGame
{
#if WINDOWS || XBOX
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
Console.ReadLine();
using (Game1 game = new Game1())
{
game.Run();
}
}
}
#endif
}
I get an IO Exception was unhandled. Not enough storage is available to process this command.
来源:https://stackoverflow.com/questions/8935642/console-readline-crash-in-xna