TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Lars Hellsten
from: Darin McBride
date: 1996-01-02 09:59:00
subject: Swapping to disk?

Hello Lars!

31 Dec 95 16:03, Lars Hellsten wrote to All:

 LH> Hello again...

 LH> I'm using Virtual Pascal and trying to port one of my programs
 LH> over to OS/2. So far all has gone better than I expected, but one
 LH> of the couple of problems I've run into so far is swapping to
 LH> disk to execute external programs.  In the DOS version, I've been
 LH> using Turbo Power's ExecSwap.

 LH> I know under OS/2 I technically don't have to free up the memory
 LH> the program's using, but I would prefer to not have the program
 LH> sitting in memory while the external program is run, so if anyone
 LH> has any ASM/Pascal code for swapping to disk under OS/2, or can
 LH> offer any useful information here, I would really appreciate it.

Lars, Lars, Lars.  Porting your Renegade stuff over?  :-)

Don't bother - let OS/2 decide that the program isn't in use and swap it out on
its own.  First, you don't have as much to do.  Second, the recall time is
faster... :-)

Under DOS you would probably rather swap to EMS/XMS, right?  Well, under
OS/2, 'do' the same thing.  Except that you're already in memory area that
isn't going to be used by the spawned process, so don't worry about it.

Darin McBride

--- GoldED/2 2.42.G0614
* Origin: Tanktalus' Tower BBS/RPGs Galore! (1:342/708)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/517 628 713/888 800/1 7877/2809
@PATH: 342/708 5015 61 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

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