Console.ReadLine() crash in XNA

懵懂的女人 提交于 2019-12-12 03:08:22

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!