www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000146

When Created: 03/28/1997 02:29:16
Against DJGPP version: 2.01
By whom: chopin@ruby.hanmesoft.co.rk
Abstract: error in system() function.
 * below is debugging trace infomation
 * djgpp version is 2.01
=============================================================================================
E:
untime\wrk>gdb run.exe
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (go32), Copyright 1996 Free Software Foundation, Inc...
(gdb) b systemFunc
Breakpoint 1 at 0x38f2b: file mydos.c, line 446.
(gdb) r easy000.cob
         .
         .
         .
                                        this program is compiler..
                                        __|___
Breakpoint 1, systemFunc ( str=0x16a148 "comp -c -o ./SCR10000.scr ./SCR10000.map",
           ' ' <repeats 61times>) at mydos.c:446
446            ret = system( str );
(gdb) n
C:\WINDOWS\TEMP\ERR2: Too many open files      <---- caution !!! when run system(str) c function. 
447     }
(gdb) p errno
$1 = 22
(gdb) p ret
$2 = 3
================================================================================================

 * reference 
      "config.sys" file inserted next 1 line.
      files = 100
  
      this program tested in windows 95 dos box 
      and dosmode, both mode have an error.
       
      intel pentium 130 
      memory 32Mega

 ** if "Too many open files" error message is true, then i want to know 
    how to increase count can open files used in djgpp. 
   

Note added: 04/12/1999 12:00:11
By whom: eliz@is.elta.co.il
This is a system configuration problem: too few available handles
for the DOS box.

Workaround added: 04/12/1999 12:00:00
By whom: eliz@is.elta.co.il
The workaround is explained in the FAQ.

Closed on 04/12/1999 12:00:43: System configuration problem.
By whom: eliz@is.elta.co.il



  webmaster     delorie software   privacy  
  Copyright © 2010   by DJ Delorie     Updated Jul 2010