[v1/v2] Problem with __delete meta function for object associated with gui control event
Posted: 23 Sep 2017, 16:27
Hello
I'm having issues with the __delete meta function not being called for an object which has been set to handle a guiControl's events, see this script,
Comment/uncomment the marked line to see the issue. Binding to a non-method function presents the same issue. I have the same problem with the corresponding v2 code.
Could someone explain my mistake to me, or why this happens?
Thanks for your time, cheers.
I'm having issues with the __delete meta function not being called for an object which has been set to handle a guiControl's events, see this script,
Code: Select all
z:=new test
gui, new
gui, add, button, hwndbtn
o:=z.f.bind(z)
guicontrol, +g, % btn, % o ; comment/uncomment to see the problem
exitapp
class test {
__delete(){
msgbox
}
f(){
}
}
Could someone explain my mistake to me, or why this happens?
Thanks for your time, cheers.