Start the attached code.
This script needs to be started multiple times in a thread to reproduce the error. In the attached zip-file, the full code and a script which starts multiple threads, is included.
Code: Select all
#include %a_scriptdir%
#include includes/include 1.ahk
#include includes/include 2.ahk
; code cropped
#include includes/include 1000.ahk
SetWorkingDir, %a_temp%
SetWorkingDir, %a_temp%
SetWorkingDir, %a_temp%
SetWorkingDir, %a_temp%
SetWorkingDir, %a_temp%
missedIncludes := ""
loop 1000
{
if not included%a_index%
{
missedIncludes .= "included0.ahk, "
}
}
msgbox % missedIncludes
I stumbled on that issue, while I did some Debugging of AutoHotFlow.
During development of AutoHotFlow I experience that sometimes some random files are not included and if there is an error message, it tells that a function implementation is missing. In some modules, the functions are called via dynamic calls and there an error occures on runtime when the script tries to call a function from a missing module.
However, deleting the "setworkingdir" calls did not solve the problem.