Thread.ahkgetvar and method calls
Posted: 15 Dec 2017, 18:24
I recently enhanced my display function - that turns an object into a string.
After sending it to RUNIE for testing he complained that his script breaks when he uses it on a specific object.
After some debugging I found out that AHK_H exits when I use a for loop on a Thread Object, more specifically when using a for-loop to access the .ahkgetvar field of the thread.
This is the code that makes AHK_H crash:
Is this by design or rather just a bug?
After sending it to RUNIE for testing he complained that his script breaks when he uses it on a specific object.
After some debugging I found out that AHK_H exits when I use a for loop on a Thread Object, more specifically when using a for-loop to access the .ahkgetvar field of the thread.
This is the code that makes AHK_H crash:
Code: Select all
Thread := AhkThread()
Msgbox incoming crash
Thread.ahkgetvar._NewEnum()
Msgbox crashed