here is a Autoit3 v220.127.116.11, 64 Bit installation on windows 10 with current updates.
In a simple script I'm Dllcall'ing a 64 bit dll.
# T1.au3 Local $name = "T1DLL.dll" if (FileExists($name)) Then ConsoleWrite("DLL '" &$name &"' exists" &@CRLF) EndIf Local $DLL = DllOpen($name) if (@ERROR OR $DLL = -1) then ConsoleWrite("DllOpen ERROR=" &@ERROR &" DLL=" &$DLL &@CRLF) Else ConsoleWrite("DllOpen Success" &@CRLF) endif DllCall($DLL, "none:cdecl", "SomeFunction", "str", "DLL Call from T1.au3") if (@ERROR) then ConsoleWrite("DllCall ERROR=" &@ERROR &" DLL=" &$DLL &@CRLF) Else ConsoleWrite("DllCall Success" &@CRLF) endif The C code contains one 64 bit OpenCV call: cv::destroyAllWindows();.
Excuting T1.au3 with SciTE gives:
If the c code is compiled *without* the OpenCV call T1.au3 runs successful:
I checked T1DLL.dll, it's definitely a 64 bit dll.
What could cause the problem?
Any hint would be very much appreciated.