Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Gestion des exceptions mémoires

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);
        }
    }
}

No comments yet.

Leave a Comment