331 Update error

Ask for help, how to use AHK_H, etc.
arcticir
Posts: 543
Joined: 17 Nov 2013, 11:32

331 Update error

16 Dec 2017, 22:22

Code: Select all

Error:  Invalid return type.

	Line#
	488: }
	489: {
	490: Return (VarSetCapacity(pguid,16,0),VarSetCapacity(sguid,114,0),!DllCall("ole32.dll\CoCreateGuid","ptr",&pguid) and DllCall("ole32.dll\StringFromGUID2", "ptr", &pguid, "ptr", &sguid, "int", 114)?StrGet(&sguid):"")
	491: }
	492: {
	493: n := {"":r:=MemoryLoadLibrary(A_Event.GetAddress("dll")),"func":DynaCall(MemoryGetProcAddress(r,"ahkFunction"),"s==sssssssssss"),"post":DynaCall(MemoryGetProcAddress(r,"ahkPostFunction"),"i==sssssssssss"),"new":DynaCall(MemoryGetProcAddress(r,"ahktextdll"),"ut==sss"),"add":DynaCall(MemoryGetProcAddress(r,"addScript"),"ut==si"),"exec":DynaCall(MemoryGetProcAddress(r,"ahkExec"),"ut==sui"),"get":DynaCall(MemoryGetProcAddress(r,"ahkgetvar"),"s==sui"),"set":DynaCall(MemoryGetProcAddress(r,"ahk
	494: if isobject(n)
--->	495: Return CriticalObject(n)
	496: }
	497: {
	498: Return Trim(RegExReplace(RegExReplace(s,"i)/\*(.|[\r\n])*?\*/"),"i)\[as\](.|[\r\n])*?\[\&\]")," 	

")
	499: }
	500: {
	501: Return Pivot_CodeReg(FileRead(A_Event.Profile[f.p] f.path))
	502: }

The current thread will exit.
arcticir
Posts: 543
Joined: 17 Nov 2013, 11:32

Re: 331 Update error

16 Dec 2017, 23:21

I found the murderer.
The error occurs in this line: A_Pivot["Iceberg"].ahkPostFunction("proceed")
This modification can start normally:
r:=A_Pivot["Iceberg"],r.ahkPostFunction("proceed")



Even if you start normally, the script will automatically exit the same for unknown reasons.
This update has a huge impact.
HotKeyIt
Posts: 1705
Joined: 29 Sep 2013, 18:35
Contact:

Re: 331 Update error

17 Dec 2017, 04:46

Thanks for feedback, should be fixed now.

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 3 guests