Gestion des exceptions mémoires

Author:

ArrayList, Array, HashTable, BitArray
{filelink=18433}

using System;

class ExceptionTab
{
    public static void Main()
    {
        int[] tabGrand;

        try
        {
            tabGrand = new int[2000000000];
        }
        catch(OutOfMemoryException err)
        {
            Console.WriteLine("Exception mémoire: "+err);
        }
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *