#Char array max size issue

9 messages · Page 1 of 1 (latest)

worn pendant
#

I have a char array that takes a variable to set the size, when the input is low it works, but when a much larger number is used it terminates

char textInput[maxInput + 1];

When:
maxInput == 2000:
Works fine 🙂

When:
maxInput == 200000000:
Breaks 😦

Any help would be greatly appreciated

tender harborBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

worn pendant
#

!solved

tender harborBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

river musk
#

you don't have enough memory for that

#

thats ~800mb

#

regular stack size is less than a megabyte

#

usually only a couple of kb