home *** CD-ROM | disk | FTP | other *** search
- uses
- dos, eco_swap
-
- ; { keep eco_swap last }
-
-
- type { use some memory, give exec something to do! }
- ar64 = array[0..65520] of byte;
- arar = array[1..8] of ^ar64;
-
- var
- status : word;
- ar : arar;
-
- begin
- for status := 1 to 8 do new(ar[status]);
- useemsifavailable := true;
- if not initexecswap(heapptr, 'SWAP.$$$') then
- writeln('Unable to allocate swap space')
- else begin
- writeln('Allocated ', bytesswapped, ' bytes ', swaploc[emsallocated]);
- swapvectors;
- status := execwithswap(getenv('COMSPEC'), '');
- swapvectors;
- writeln('Exec status: ', status);
- end;
- end.
-