home *** CD-ROM | disk | FTP | other *** search
- From: Chuck.Grimsby@p1.f47.n282.z1.tdkt.kksys.com (Chuck Grimsby)
- Sender: FredGate@tdkt.kksys.com
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!umn.edu!kksys.com!tdkt!FredGate
- Newsgroups: comp.sys.atari.st
- Subject: GFA 3.07: RESERVE XX; EXEC 0,"prg"; RESERVE - help.
- Message-ID: <724799561.F00002@tdkt.kksys.com>
- Date: Fri, 18 Dec 1992 05:27:54 -0600
- Lines: 34
-
- In a message of 17 Dec 92 19:33:57, Pieter Filius wrote:
-
- PF> Hello regular posters and occasional lurkers of this group,
- PF> For those more than vaguely interested in GFA 3.XX, better yet:
- PF> heavily involved in it,
- PF> hear me cry:
- PF> I simply wish to execute any specified program,
- PF> chosen via a fileselector box from my application,
- PF> whilst keeping my application resident.
- PF> There. Pretty simple really. My Data-Becker manual tells me to use:
- PF> RESERVE <some amount of memory>
- PF> EXEC 0,"SOME.PRG","",""
- PF> RESERVE
- PF> in which the last RESERVE should reset things as they were.
- PF> QUESTIONS:
- PF> * How would I go about using the RESERVE command sensibly,
- PF> not knowing what to reserve for an unknown program?
-
- First off, the GFA manual for 3.0x has the RESERVE command backwards from what
- it should be. You want to use _negative_ numbers for the RESERVE statement.
-
- Second, in the GFA interpreter for GFA 3.07, the RESERVE statement without a
- number to 'release' the memory area doesn't work. It'll work fine when
- complied, but not while you're in the interpreter. Exiting the GFA Basic
- interpreter is the _only_ way to gain back the memory you've RESERVED.
-
- When using RESERVE to allocate memory, you don't need to know how much memory
- the prorgam you're going to run will take, you need to know how much memory the
- program you're currently running is using, and apply that to the RESERVE command
- as a negative number. For example, if your program is using 200K of memory, you
- want to use RESERVE -20000. The rest of the memory is then available for
- whatever program you want to run.
-
- * Origin: FlightLine PointNet Point 1 (1:282/47.1)
-