You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1016 B
C#
36 lines
1016 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TestForm
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
//// 指定栈的大小为1MB
|
|
//const int StackSize = 1024 * 1024;
|
|
//// 设置主线程栈的大小
|
|
//Thread mainThread = Thread.CurrentThread;
|
|
//if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
|
//{
|
|
// if (!mainThread.SetThreadStackGuarantee(StackSize))
|
|
// {
|
|
// Console.WriteLine("设置主线程栈的大小失败");
|
|
// }
|
|
//}
|
|
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new Form1());
|
|
}
|
|
}
|
|
}
|