'limit of object or way to find it

so i need to find the limit of object and prove it so i have done this

    Dim D3 As New CLdevoire
    Dim i As Int64
    Dim j As Int64
    Dim R As Int64
    R = 9223372036854775807 
    For i = 1 To R 
        D3 = New CLdevoire 
        Console.WriteLine(i) 
    Next

    For i = 1 To R 
        For j = 1 To R 
            D3 = New CLdevoire
            Console.WriteLine(i) 
        Next
    Next

but either my computer crash because i don't have enough ram or if i have a swap because the disk and ram are does anyone have a way to reach it ? (since for my teacher they are a limit before the system limit of 2^64



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source