New
#1
HeapAlloc not working in a 64-bit program
3-25-2013
Thanks for any help.
Running Windows 7 64-bit pro with all the goodies.
Hp Pavilion
For a 64-bit program written in GoAsm 64-bit.
The value in HeapAlloc is a variable number.
GetProcessHeap executed without an error.
HeapAlloc fails and gives a blue screen with
Microsofts "AppCrash" message in the details.
The other HeapAlloc return values did not appear.
My testmsg3 never gets executed.
DATA SECTION
PtrMem dq 0
HeapHandle dq 0
testmsg3 db 'after HeapAlloc',0
.code
;other code
invoke GetProcessHeap
mov [HeapHandle],rax
invoke HeapAlloc [HeapHandle],HEAP_GENERATE_EXCEPTIONS,120000
mov [PtrMem],rax
;test code begin
invoke MessageBox, [hWnd], addr testmsg3, addr testmsg3, MB_OK ;true
; test code end
;other code