Maximum String Length?

BlitzMax Forums/BlitzMax Beginners Area/Maximum String Length?

Well, i got a string 2^28 characters long, but when I tried for 2^29, the program crashed. so the actual length is somewhere between 256 megacharacters and 512 megacharacters. If I'm not mistaken, each character is stored as 2 characters, so the actual memory usage would be between 512MB and 1GB.

just did some more testing, seems the maximum changes every time I run the program. My computer has 2GB of memory and much of that is being used by Vista. So maybe I'm simply running out of space rather than there being a limit on string size. BTW, BMax isn't throwing any errors, the program just simply quits working.