Memory out of range

Hello..
I need to store n number of objects in an array.

how can i do that.