Modify

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: 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 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:

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 Changed 5 years ago by anonymous

Hi Jos,

Your solution seems to fix the problem. Thank you!

Ben

comment:4 Changed 5 years ago by Jos

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

Fixed by revision [12228] in version: 3.3.15.1

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

Action
as closed The owner will remain Jos.
Author


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

 
Note: See TracTickets for help on using tickets.