BUG

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
arcticir
Posts: 694
Joined: 17 Nov 2013, 11:32

BUG

20 Aug 2018, 20:40

This is a weird bug, very weird.

Code: Select all

f:=AhkThread()
s:="
(
	#Persistent
	;v:=DynaCall(MemoryGetProcAddress(A_MemoryModule,"addScript"),"ut==siui","",0,A_ThreadID)
	;v["a:=1",1] ;Use V normal
	AhkSelf().add("a:=1",1)
	return

	ahkself(){
		return {add:DynaCall(MemoryGetProcAddress(A_MemoryModule,"addScript"),"ut==siui","",0,A_ThreadID)}
	}

	t(list*){
		static  _f:=(onmessage(74,A_ScriptHwnd,_f:=func("t"),250),_f)
		MsgBox 
		o:=[] ;Delete this line becomes normal
		return
		a(list*){
			o:=1 ;Delete this line becomes normal
		}
	}
)"

f.ahktextdll(s)
MsgBox "Start Test"
exe:=fileread(a_ahkpath,"RAW")
i:=VarSetCapacity(exe)
VarSetCapacity(r, 3*A_PtrSize, 0)
	,NumPut(i,r, A_PtrSize),NumPut(&exe,r,2*A_PtrSize)
	XX:=&r ; The value of XX is 0 normal
SendMessage_(f.ahkgetvar("A_ScriptHwnd"),74,1,XX)

MsgBox 2
---------------------------
Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION

Mouse and Keyboard hooks have been disabled.

- Press yes to exit thread and continue execution.
- Press no to continue thread (debug).
- Press cancel to exit application.

Exception was caused in thread id: 6304
Line: 5
LineFile: #Persistent
;v:=DynaCall(MemoryGetProcAddress(A_MemoryModule,"addScript"),"ut==siui","",0,A_ThreadID)
;v["a:=1",1] ;Use V normal
AhkSelf().add("a:=1",1)
return

ahkself(){
return {add:DynaCall(MemoryGetProcAddress(A_MemoryModule,"addScript"),"ut==siui","",0,A
---------------------------
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: BUG

22 Aug 2018, 18:46

That was a nasty one, it has been fixed now ;)

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 21 guests