Modify

Opened 6 years ago

Closed 6 years ago

#3733 closed Bug (Fixed)

_FileListToArrayRec hangs when using a UNC path

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

Description

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

\\winserver\ini\

), 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.

Example:

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

Example()

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.
(e.g.:

\\?\UNC\winserver\ini\

)

Attachments (0)

Change History (4)

comment:1 by anonymous, 6 years ago

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 by Jos, 6 years ago

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:

https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/test/File.au3

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

Jos

comment:3 by anonymous, 6 years ago

Hi Jos,

Your solution seems to fix the problem. Thank you!

Ben

comment:4 by Jos, 6 years ago

Milestone: 3.3.15.1
Owner: set to Jos
Resolution: Fixed
Status: newclosed

Fixed by revision [12228] in version: 3.3.15.1

Modify Ticket

Action
as closed The owner will remain Jos.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.