Hi Andre, When opendir fails, what is errno set to? You can use errno to diagnose the problem. The mnemonic identifier associated with the errno value is in errno.h header file. That should tell you what went awry. Note: you seem to be failing to free the memory that opendir allocates. Eventually, you will run out of heap. HTH, --Eljay