8-27-2014
My 1st time using the Heap Marcos
Heapcreate seems to work but HeapAlloc does not even show either
error message below.
I am trying to create a growing heap.
Suggestion would be appreciated
HeapH dd 0
invoke HeapCreate, HEAP_GENERATE_EXCEPTIONS,10000,0
mov [HeapH],eax
; test begin code
;tmsg14 db 'HeapCreate seems to work',0
;tmsg15 db 'HeapCreate failed',0
cmp eax,0h ;if NuLL, HeapAlloc failed
jne >>.tout
invoke MessageBox, [hWnd],addr tmsg15,addr tmsg15,MB_OK ;true
jmp >>.tout2
.tout
invoke MessageBox, [hWnd],addr tmsg14,addr tmsg14,MB_OK ;true
.tout2
; test end codecode
invoke HeapAlloc, [HeapH],HEAP_GENERATE_EXCEPTIONS | HEAP_ZERO_MEMORY,10000
; test begin code
;tmsg10 db 'HeapAlloc seems to work',0
;tmsg11 db 'HeapAlloc failed',0
cmp eax,0h ;if NuLL, HeapAlloc failed
jne >>.tout3
invoke MessageBox, [hWnd],addr tmsg11,addr tmsg11,MB_OK ;true
jmp >>.tout4
.tout3
invoke MessageBox, [hWnd],addr tmsg10,addr tmsg10,MB_OK ;true
.tout4 ; test end code