TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: TIM HUTZLER
date: 1997-01-20 10:59:00
subject: SHELLing to a memory hog

Hi;
Let's wake this echo up!
Sometimes I want to shell out to another program, but I can't because
it requires more memory than the PowerBASIC SHELL command will
permit. It's too bad that the SHELL command didn't come with swap
options, but alas it doesn't.
It seems that the POPUP facility could be helpful. POPUP SLEEP does
pop-down with enough memory for memory hog programs, but it isn't
like SHELLing. When the program exits, it exits to DOS and the POPUP
TSR has to be manually reactivated.
A more elegant way would be to uses the POPUP INTERUPT to popup the
TSR, but PowerBASIC will not let you activate on 21h interupts, which
will be how most, if not all DOS programs terminate.
A way I think would get around this is to code a vector for INT 21h
and call another interrupt number that POPUP INTERUPT can monitor. I
can do this with A86 easily enough, but that would require another
layer of TSR. It seems that PowerBASIC has the facilities: CODEPTR32
would be very useful. But I can't point to a proceedure that got
popped down. That proc has to stay resident.
Can this be done?
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

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™.