Visual Basic Reference

Visual Studio 6.0

Not enough room to allocate control array 'item' (Error 342)

See Also

There isn't enough memory to create all the elements of a control array. This error has the following causes and solutions:

  • An element in a control array with discontiguous index values for its elements, such as 0, 2, 4, was assigned too large an index value at design time.

    Change the Index propertys setting to a smaller value so that Visual Basic doesn't run out of memory.

  • You used the Load statement to add an element with too large an index value to a control array.

    Change the index value in your code to a smaller value.