HP OpenVMS Systems

ask the wizard
Content starts here

Scanning directories for files?

» close window

The Question is:

 
Dear Wizard,
 
I wrote a simple program that searches periodically for files in directories
 using opendir()/readdir()/closedir(). With every single loop-step, the program
 gathers 2 - 3 pages for its working set, which can be seen using SHOW PROCESS
 <name> /CONT, and end
s up in a "%DEBUGBOOT-W-EXQUOTA, process quota exceeded"-Message.
 
Is this a known behaviour, and if yes, how can I fix this (eg. free() DIR or
 DIRENT structures)?
 


The Answer is :

 
  Without the source code involved, a specific answer is difficult.
  Please check for available (mandatory) ECO kits for this release,
  and ECO kits for the LIB RTL and for Compaq C, and (if these ECO
  kits do not resolve this) please contact the Compaq Customer Support
  Center for further assistance in troubleshooting this.
 
  The OpenVMS Wizard typically prefers to use lib$find_file and
  lib$find_file_end, though sequencing through the directories with
  what appears to be the algorithm referenced here should work.
 

answer written or last revised on ( 12-MAR-2001 )

» close window