Search Unity

StackOverflowException System.Int32 value

Discussion in 'Scripting' started by JLCTees, May 10, 2019.

  1. JLCTees

    JLCTees

    Joined:
    Feb 5, 2019
    Posts:
    2
    StackOverflowException: The requested operation caused a stack overflow.
    System.Collection.Generic.List`1[T].set_Capacity (System.Int32 value) (at <1f0c1ef1ad524c38bbc5536809c46b48>:0)

    I assume the issue is that the list can only hold a 32bit int's worth of items. Is it possible to make a list using an Int64 instead? Am I misunderstanding the issue?

    Posting the code would be a huge pain, but I'll find a way to share if necessary.

    I quite like that the error has a little angry face at the end >:0

    Thanks for any pointers.