Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
Referencing File.url triggers an error after calling File.canonicalize() - Windows 10, only after system update KB5037768
Problem Description
Latest AIR 51, tried with AIR 50 as well.
On Windows, referencing a file or folder all goes well. Calling file.canonicalize() though, any subsequent call to file.url triggers this error:
Error: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful. at Error$/throwError() at flash.filesystem::File/get url()
It used to work this morning, then I have installed a mandatory windows update, and now I get this error. Probably related to some changes made by Microsoft to how Windows handles file system?
Steps to Reproduce
Reference any file or folder with resolvePath(). Call file.canonicalize(); Access file.url.
Known Workarounds
Make sure you don't need canonicalize() and avoid to call it.