I was testing with including a file in different locations of my script and found that when using #include with bracket (< / >) syntax, the include fails but not when using the path to the file (relative and absolute paths work fine).
for instance:
Code: Select all
Clean(txt)
{
#Include <clean_words> ; this fails with error: "AutoHotkey closed for the following exit code: 3221225477"
; #Include .\lib\clean_words.ahk ; this works just fine, full path as well
static repEndValue := map(
; Triming Words here
"\bautohotkey\b" , "AHK",
"the speaker" ,"Speaker",
"\band\b" , "&",
)
for wrong,correct in repValues
txt := RegExReplace(txt, 'im)' wrong, correct)
for wrong,correct in repEndValue
txt := RegExReplace(txt, 'im)' wrong, correct)
return txt
}
I dont get an AHK error, or any other feedback from autohotkey itself. Just a crash.AutoHotkey closed for the following exit code: 3221225477