Opened 5 years ago

Closed 5 years ago

#3733 closed Bug (Fixed)

_FileListToArrayRec hangs when using a UNC path

Reported by: anonymous Owned by: Jos
Milestone: Component: AutoIt
Version: Severity: None
Keywords: _FileListToArrayRec UNC Cc:


When using _FileListToArrayRec when $sFilePath is a UNC path (like


), AutoIt hangs with 1 core on 100% usage and keeps eating up memory. It always worked before for me, so I guess a recent Windows 10 update caused this maybe?
Windows 7 is not affected.


#include <Array.au3>
#include <File.au3>
#include <MsgBoxConstants.au3>


Func Example()
    Local $aArray = _FileListToArrayRec("\\winserver\ini\", "*.ini", $FLTAR_RECUR, $FLTAR_FILES, $FLTAR_SORT)
    _ArrayDisplay($aArray, "Sorted tree")
EndFunc   ;==>Example

When using 'Long UNC' (Wikipedia), the function works as expected and returns an array.



Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by anonymous

Oh, I just saw it has been discussed here before.
It shouldn't be necessary to convert to long UNC I think.
Or is there a reason why this is happening?

comment:2 Changed 5 years ago by Jos

I think I found an issue making it loop endlessly. Could you try this version of the file.au3 include to see if that fixes it for you:

Just rename the current one and download this one to the AutoIt3\include directory.


comment:3 Changed 5 years ago by anonymous

Hi Jos,

Your solution seems to fix the problem. Thank you!


comment:4 Changed 5 years ago by Jos

  • Milestone set to
  • Owner set to Jos
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [12228] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jos.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.