Page 1 of 1

ahkthread_free calls objects.Remove()?

Posted: 19 May 2018, 07:26
by XphereOmega
Hi!
I've been using AHK v1 for years but totally new to AHK v2 and also to AHK_H.
I just downloaded AHK_H v2 packed master version and got the error by running the following simple script.

Code: Select all

; main.ahk
sub1 := AhkThread("sub.ahk", "", "sub", true)
msgbox("done!")
AhkThread_free(sub1), sub1 := ""

; sub.ahk
msgbox("sub!")
error.png
error.png (18.4 KiB) Viewed 1757 times

AFAIK, AHK v2 doesn't have Remove() method for object so that shouldn't be happened, right?
Do I need to do some setup first before using it or am I doing something wrong?
Any help is really appreciated.