TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: TIM HUTZLER
from: HANS LUNSING
date: 1997-01-26 08:47:00
subject: SHELLing to a memory hog

Hello Tim
On Monday, 20 January 1997 10:59:22, you wrote to All:
 TH> Sometimes I want to shell out to another program, but I can't
 TH> because it requires more memory than the PowerBASIC SHELL command
 TH> will permit. It's too bad that the SHELL command didn't come with
 TH> swap options, but alas it doesn't.
I adapted Marty del Vecchio's swap procedure for PowerBasic, and it
works fine.
The package (swap) includes a MS-DOS assembly-language routine that can
be called from a PowerBasic 3.1 program.  It will swap most of the
current program  to extended memory (supplied by an XMS driver, such as
HIMEM.SYS), expanded memory (EMS version 4.0), or disk, thus freeing up
more memory for DOS. It will then execute another program in its place,
and re-load the original program to its original state.  This allows
large DOS programs to execute other programs without the original
program taking up DOS memory.
Interested?
--- Terminate 4.00/Pro
 # Origin: BBS De Lauwers For BASIC Programmers! ++31594688407 (2:282/610.12)
(1:100/560.0)
---------------
* Origin: Gate United Bbs Systems Fido USA (119:119/0.0) /

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.