TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: DAVE WAKEFIELD
from: DAVE NAVARRO
date: 1995-09-19 10:49:00
subject: Power Basic problem

To: DAVE WAKEFIELD
Subject: Power Basic problem
DW>        Is there any reason I shouldn't be able to shell to an
DW>        executable program from a tsr programmed in Power Basic?
DW>        When I change the program to a non-tsr and do the same thing, it
DW>        works.  The program is a simple one that uses the POPUP TIMER to
DW>        activate and check the time, then the POPUP SLEEP to become
DW>        dormant again.  At a particular time, I attempt to run another
DW>        program.
PowerBASIC does not support the SHELL statement in a TSR.  In order for
SHELL to work without using undocumented DOS calls (which we do not do),
we would have to track every executable which is ever run after the TSR
so that we could properly swap DOS's data segment back into memory for
the SHELL.  This could potentially add megabytes of overhead to your
application.
We think we *might* have discovered a better way to do it without all
the overhead and we are investigating the possibility for a future
upgrade of PowerBASIC.  But I don't know if it will work, or which
version it would go into if it does work.
So for now, you cannot SHELL from within a TSR.
--Dave
---
 * QMPro 1.53 * Can you do the Picard Maneuver in a Hyundai?
--- WILDMAIL!/WC v4.12 
---------------
* Origin: Toast House * (314) 994-0312 * (1:100/560.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™.