Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Assign Multiple Array ID Limit.

Author
Message
Chmava
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location:
Posted: 2nd Mar 2014 15:50
I am trying to assign the follow:



i keep getting "uncaught exception:"

is the limit for all array an id of 536631277?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 2nd Mar 2014 21:34
When you define an array, you specify the number of elements it has. You're creating 4 arrays each at half a billion integers. That's using 2GB per array! You're trying to define 8GB of data in those lines, insane!

And yes, there is a limit for an array index, it's the limit of an integer. So theoretically, you should be able to have an index of 2,147,483,647


You should define your array based on how many elements you need, not by the number you wish to index the elements.

Login to post a reply

Server time is: 2024-11-25 02:34:08
Your offset time is: 2024-11-25 02:34:08