BBS: Inland Empire Archive Date: 04-15-92 (23:50) Number: 61 From: JEAN CREPEAU Refer#: NONE To: JASON GORMLEY Recvd: NO Subj: Out Of String Space Conf: (2) Quik_Bas
In a message to ALL, JASON GORMLEY wrote: JG=> Hello. I have been reading this base for awhile, but this is the first post I've posted. I have a question for all you Quick Basic Wizards. JG=> I am in the process of writing an online Role-Playing type game. It is almost done, but One error keeps dogging my (and my co-programmers) progress. OUT OF STRING SPACE. My question is this... Has anyone else had a problem with this, and what are my options in getting rid of this troblesome error?? This happens because you use too much string space! When you have many long (very long) strings, that often happens. You should use disk files to write your long strings, which will save RAM space. If you have a (or many) large array dimensionned, this also can produce that error. Make your arrays smaller or run QB with the /AH option. I think BC also accepts the /AH option. This option allocates high-adress RAM for your dynamic arrays, which leaves more space for your strings. The limit of string space is 64K I think. But if your use more stack (with CLEAR), this lower this limit. Jean --- * Origin: INTERACESS Montreal (QC) Canada (514) 528-1415 (1:167/280)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET