home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5243 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.1 KB

  1. Path: sparky!uunet!psgrain!hippo!catpe!p16.f120.n7102.z5.fidonet.org!Alex.Rossi
  2. From: Alex.Rossi@p16.f120.n7102.z5.fidonet.org (Alex Rossi)
  3. Sender: ufgate@catpe.alt.za (newsout1.26)
  4. Newsgroups: comp.lang.pascal
  5. Subject: can't get EXEC to work
  6. Message-ID: <2109.2AACEEF0@catpe.alt.za>
  7. Date: Mon, 07 Sep 92 20:08:00 GMT
  8. Organization: FidoNet node 5:7102/120.16 - Interlink BBS, CT
  9. Lines: 22
  10.  
  11.  
  12. On 05 Sep 92, Joel Daniel Just mumbled to All:
  13.  
  14.  JDJ> I am having trouble getting the EXEC command to work in Turbo Pascal v5.0
  15.  JDJ> on the PC.  Here is an example program:
  16.  
  17.  JDJ> PROGRAM TEST;
  18.  JDJ> USES DOS;
  19.  JDJ> BEGIN
  20.  JDJ>    EXEC('dir','');
  21.  JDJ>    WRITELN('DONE')
  22.  JDJ> END.
  23.  
  24. Have you considered assigning a little memory for the program you are calling to work with :-) Try something like {$M 1024,0,0} in the first line... You might have to fiddle a bit to get the numbers to an optimum but that's basically what the problem is.
  25.  
  26. Cheerio,
  27.      Alex
  28.  
  29. --  
  30. INTERNET: Alex.Rossi@p16.f120.n7102.z5.fidonet.org
  31. via:  THE CATALYST BBS in Port Elizabeth, South Africa.
  32.        (catpe.alt.za)   +27-41-34-1122 HST or +27-41-34-2859, V32bis & HST.
  33.