Mail Archives: djgpp/1999/09/09/10:34:50
On Wed, 8 Sep 1999, Dave Scott wrote:
> This came to light when using the 'system()' or 'spawn*()' functions
> to repeatedly invoke a *non-DJGPP* compiled program - i.e. a "standard"
> DOS .exe type.
>
> e.g. Something like :-
> while (ch != 27) // loop until escape pressed
> {
> system("qedit file.txt"); // invoke an editor on text file
> ch = getch()
> ... etc.
>
> After a certain number of times through the loop, the child sub process
> finds it has no free file handles, and hence cannot open the given file.
Thanks for the report. This is indeed a bug; it is already corrected
in the DJGPP development sources and will be fixed in v2.03. If you
need the fixed version now, you can get it via the anonymous CVS
access to the DJGPP sources; see http://www.delorie.com/djgpp/ for
details.
- Raw text -