您的位置:首页 > 编程语言 > C#

C# 内存泄漏

2016-03-31 12:47 369 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication34
{
class Program
{
static long[] a,b;
static void Main(string[] args)
{
int MAX3 = 250000000;
int MAX = 266337784;//32位
int MAX2 = 268435448;//64位
a = new long[MAX3];
//b = new long[MAX2];
for (int i = 0; i < a.Length; i++)
{
a[i] = i;
}
/*
b = new long[100000000];
for (int i = 0; i < b.Length; i++)
{
b[i] = i;
}
*/
do
{
Console.WriteLine("输入q退出:");
string n = Console.ReadLine();
if (n == "q")
{
break;
}
} while (true);
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  C# 内存泄露