This throws an out of memory exception when using 10^8 items but not with 10^7. How would you serialize an array with 10^9 values in it so that it could be stored in a database?
Dim List((10 ^ 9) - 1) As Int64
For i = 1 To (10 ^ 9)
List(i - 1) = i
Next
Dim Format As New Runtime.Serialization.Formatters.Binary.BinaryFormatter
Dim Writer As New System.IO.MemoryStream
Format.Serialize(Writer, List)
[EDIT]
This is on a 64 bit machine with more memory than one could every ask for. 8GB and can page up to 15GB