MaxSax Posted April 24, 2020 Posted April 24, 2020 Hello All, it seems that IniReadSection() cause script crash after a recent update of Win10 x64 (build 1909). Tested with AutoIt v. 3.3.14.5 under x86 and x64 architectute using demo code in Help file of IniReadSection() Any Help is appreciated (also an indication if to use an external function in substitution of that embedded in AutoIt) Max
Moderators Melba23 Posted April 24, 2020 Moderators Posted April 24, 2020 MaxSax, Welcome to the AutoIt forums. The crash is caused by the _WinAPI_GetTempFileName call - if you substitute a file path everything works as expected. I am investigating. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Moderators Melba23 Posted April 24, 2020 Moderators Posted April 24, 2020 MaxSax, Interesting - the script fails occasionally when using the following: _WinAPI_GetTempFileName(@TempDir) I cannot get it to fail when using another directory macro or a hard-coded path. So it would seem to be a transient problem with Win 10 and that particular macro - although the path seems quite normal: "C:\Users\Melba23\AppData\Local\Temp". I will keep probing - any comments from other testers would be welcome. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
TheXman Posted April 24, 2020 Posted April 24, 2020 (edited) 55 minutes ago, Melba23 said: The crash is caused by the _WinAPI_GetTempFileName Although the article below is related to Windows 7, could it still be the issue? https://support.microsoft.com/en-us/help/982613/the-gettempfilename-function-fails-together-with-an-access-denied-erro Edited April 24, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
TheXman Posted April 24, 2020 Posted April 24, 2020 _TempFIle() may be a good alternative since it does not use the Win32 API. CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Nine Posted April 24, 2020 Posted April 24, 2020 @Melba23 I am not able to see the crash with Win10 1909. Can you share the script that you use that creates it ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Moderators Melba23 Posted April 24, 2020 Moderators Posted April 24, 2020 Nine, As was the case for the OP, I used the IniReadSection Help file example. All I added was the #AutoIt3Wrapper_UseX64 directive so i could test under both x64 and x32. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Nine Posted April 24, 2020 Posted April 24, 2020 I ran it about 30 times no problem here. Both Win10 and Win7. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Moderators Melba23 Posted April 24, 2020 Moderators Posted April 24, 2020 Nine, I got a couple of failures during many tests, but the majority of the time it ran without problem. So whatever it is is obviously transient. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Nine Posted April 24, 2020 Posted April 24, 2020 Another 50 tests, no problem. Have you tried cleaning your temp folder ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
MaxSax Posted April 25, 2020 Author Posted April 25, 2020 I beg pardon, but I've conducted analysis on a my snippet of code without use of API _WinAPI_GetTempFileName(), but I've reported problems on help example because known to all. More, original problem was observed on a binary compiled with AutoIt ver 3.3.14.2 executed (with success) under Win7 x64 and crashing under Win10 x64 build 1909 To be more focused on IniReadSection(), I attach a simplified version of my case, where I have tested all combination of interpreters and O.S.: Win7 x64 / interpreter x86 ver 3.3.14.2: IniReadSection() works Win7 x64 / interpreter x64 ver 3.3.14.2: IniReadSection() works Win7 x64 / interpreter x86 ver 3.3.14.5: IniReadSection() crash Win7 x64 / interpreter x64 ver 3.3.14.5: IniReadSection() crash Win10 x64 build 1909 / interpreter x86 ver 3.3.14.2: IniReadSection() crash Win10 x64 build 1909 / interpreter x64 ver 3.3.14.2: IniReadSection() crash Win10 x64 build 1909 / interpreter x86 ver 3.3.14.5: IniReadSection() crash Win10 x64 build 1909 / interpreter x64 ver 3.3.14.5: IniReadSection() crash I appreciate indications if there is some workaround Many thanks in advance Max TestINIread.ini TestINIread.au3
Nine Posted April 25, 2020 Posted April 25, 2020 No crash Win7 x64 (x86 & x64 run) 3.3.14.5 No crash Win10 x64 1909 (x86 & x64 run) 3.3.14.5 Attempted 10 times for each option. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
jchd Posted April 25, 2020 Posted April 25, 2020 No crash for me as well Win10 x64 1909 (x86 & x64 run) 3.3.14.5 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
MaxSax Posted May 15, 2020 Author Posted May 15, 2020 Thanks for testing. It seems that problem vanishes for me with latest beta (v 3.3.15.2) Max
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now