BBS: Inland Empire Archive Date: 12-22-92 (14:16) Number: 355 From: TONY ELLIOTT Refer#: NONE To: NICK DIETZ Recvd: NO Subj: Re: Link - 64k Conf: (2) Quik_Bas
Nick, ND> I am getting a "Stack plus data exceeds 64k" error. How do you get ND> rid of it without reducing your programs size? This isn't a problem with your program size. It's a problem with DGroup usage. A couple of ways to get around it: 1. Make sure your numeric and fixed-length string arrays are $Dynamic. The best way to insure this is to use REDIM instead of DIM. 2. If you are using SUBs and FUNCTIONs, remove the "STATIC" keyword from the end (e.g. "SUB MyRoutine STATIC"). This forces local variables to be allocated on the stack instead of giving them a permanent place in Dgroup. 3. If you are using large quoted strings, you might want to consider moving them out into a file. Tony ... I need a program that prints "hello world" --- Blue Wave/Max v2.10 [NR] * Origin: Oakland BBS - McDonough, GA - (404) 954-0071 (1:133/706.0)
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