I found that the 64 bit version works for me in windows 7 but crashes in windows 10 unless i turn off high entropy ASLR for some reason. If i turn off high entropy ASLR then it works ok.
This dll call is what is causing the crash:
Local $Ret = DllCall("user32.dll", "uint", "CallWindowProc", "ptr", $CodeBufferPtr + $AP_Decompress, _
"ptr", DllStructGetPtr($Output) + 4, _
"ptr", DllStructGetPtr($Result), _
"int", 0, _
"int", 0)
I believe the posts on these pages may be discussing a similar crash and maybe a solution but it is beyond my understanding.
https://social.msdn.microsoft.com/Forums/en-US/97256987-157e-4601-b22b-f77f43e33926/getting-crash-when-calling-callwindowproc-function-in-migration-from-vs60-to-vs2015 https://social.msdn.microsoft.com/Forums/en-US/7820bf8c-0540-49b6-bf86-2a39db09add1/getting-crash-when-calling-callwindowproc-function-in-migration-from-vs60-to-vs2015