"System.Runtime.InteropServices.ExternalException"发生在System.Drawing中.dll"



为什么会出现错误:

'System.Runtime.InteropServices.ExternalException' occurred in System.Drawing.dll

这里:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace MacierzeJacobiego
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
转到"

调试"菜单下,选择"异常",然后从出现的对话框中,在"抛出"列中为"公共语言运行时异常"放置一个复选框。单击"确定",然后再次尝试调试。

执行将在发生异常的地方停止。

干杯

最新更新