× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Joep,

        Yes to both (in another module).  I open a directory, read through it
looking for files of interest, load their names in an array, and close it.
I can't see any way for the close to fail to be executed.  Is it possible
that the number of files in the directory, being very large, could in itself
cause that message?  I have directories with tens of thousands of files...

Regards,

Rick DuVall
Systems Manager
Dealer's Auto Auction of Okc
405 947-2886 Ext:143
rick@xxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of
J.Beckeringh@xxxxxxxxxxxxxxxxxxxxxxxxxx
Sent: Wednesday, November 23, 2005 9:32 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Too Many Files Open Error


Just a guess: do you use 'opendir' for reading directories? And if so, do
you use 'closedir' as well?

Joep Beckeringh






"Rick DuVall" <R_C_DuVall@xxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
23-11-2005 16:07
Please respond to RPG programming on the AS400 / iSeries

        To:     "RPG400-L@midrange. com" <RPG400-L@xxxxxxxxxxxx>
        cc:
        Fax to:
        Subject:        Too Many Files Open Error


Hi Group,

                 I have a system running that, in part, accepts base64
jpegs, converts them
to binary, and writes them to the IFS (kudos to Scott Klement for his
base64
routines - great!).  It runs fine with one exception.  Periodically, it
returns a 'Too many open files for this process.' error when trying to
open
a file for write.

                 Obviously I must be failing to close files somewhere, but
I have not been
able to locate the fault.  It would surely help if I could, at failure
time,
list all the open files giving me a place to look but I haven't found
anything that would let me do that.  It is barely possible the problem is
not in the module I am examining (it's a fairly complex process overall).
I
would appreciate any pointers or suggestions - api's whatever that could
help me nail this down.  Can you get a list of open ifs files?

Thanks

Rick DuVall
Systems Manager
Dealer's Auto Auction of Okc
405 947-2886 Ext:143
rick@xxxxxxxxxx


--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.