Quickbasic 4.5 Compiler P

 BBS: Inland Empire Archive
Date: 06-21-92 (13:48)             Number: 1085
From: JEAN CREPEAU                 Refer#: NONE
  To: BRYAN FLICK                   Recvd: NO  
Subj: Quickbasic 4.5 Compiler P      Conf: (2) Quik_Bas
In a message to ALL, BRYAN FLICK wrote:
BF=> I  wrote a  BBS that  was originally  70K long,  which  QuickBASIC 4.5
    refused to compile it (0 Bytes Free, Out of Memory Error). I've managed
    to squeeze the BBS down to just over 50K, and when I compile I get this
    error message...

BF=> 0F0D   25E8                ^ Program Memory Overflow

BF=> 44013 Bytes Available  3342 Bytes Free

BF=> What does this  mean? I have enough  memory to compile it  (3K), but I
    still get this error message... And  it doesn't point to a line  so I'm
    not sure what to fix... Can anyone help?

        Yes, you have enough memory to compile, but your program is too big
to hold in a 64K segment... You must fragment your file into smaller files.
Try to put all the subroutines in  a separate BAS file. You cannot do  this
with the subroutines (or functions) that use the SHARED statement.

        Then, you must  compile the two  BAS files separatly  to produce to
OBJ files. Use the linker to link  the two OBJ files and make a  single EXE
file. QB shouldn't be able to run your program.

        Otherwise, you can  split your program  into many programs  and use
the CHAIN sentence to execute the programs one after the other. Doing  this
avoids you to share  all the variables. You  have to declare the  variables
you  want  to  pass  from  a  program  to another with a COMMON sentence. I
strongly recommend you to put exactly  the same COMMON sentence in all  you
programs.

                Jean
---
 * Origin: INTERACESS Montreal (QC) Canada (514) 528-1415 (1:167/280)
Outer Court
Echo Basic Postings

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