Jump to content

Recommended Posts

Posted

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
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

  • Moderators
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted (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 by TheXman
Posted

_TempFIle() may be a good alternative since it does not use the Win32 API.

 

  • Moderators
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

  • Moderators
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted

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

  1.  Win7 x64 / interpreter x86 ver 3.3.14.2: IniReadSection() works
  2.  Win7 x64 / interpreter x64 ver 3.3.14.2: IniReadSection() works
  3.  Win7 x64 / interpreter x86 ver 3.3.14.5: IniReadSection() crash
  4.  Win7 x64 / interpreter x64 ver 3.3.14.5: IniReadSection() crash
  5.  Win10 x64 build 1909 / interpreter x86 ver 3.3.14.2: IniReadSection() crash
  6.  Win10 x64 build 1909 / interpreter x64 ver 3.3.14.2: IniReadSection() crash
  7.  Win10 x64 build 1909 / interpreter x86 ver 3.3.14.5: IniReadSection() crash
  8.  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

Posted

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 here
RegExp tutorial: enough to get started
PCRE 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)

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...