HeapAlloc not working in a 64-bit program

phenix

New member
Member
VIP
Local time
3:46 PM
Messages
254
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
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
had the system built by PCsandParts
OS
windows 7 Pro 64 bit
CPU
mini tower
Motherboard
h110m-k (lga1151)
Memory
4g
Graphics Card(s)
nvidia geforce gt730 graphics card
Sound Card
high definition audio device
Monitor(s) Displays
19" dell ultra sharp
Screen Resolution
1280 x 800
Hard Drives
Kingston SSD
PSU
?
Case
?
Cooling
?
Keyboard
standard ps/2 keyboard
Mouse
ps/2 compatible optical
Internet Speed
fiber optics
Antivirus
ESET Smart Security
Browser
IE11
Other Info
no Wifi. Bose speakers, optical drive tsstcorp dvd+-RW
I might have found the culprit.
When the blue screen appears and a window to cancel the program appears, under details,
lots of stuff is listed. Under Fault Module Name is "ntdll.dll"
I am running windows 7 pro 64-bit with all the updates.

Since I have no control over this module I am at a loss as to how to proceed.
Sure could use some guidance.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
had the system built by PCsandParts
OS
windows 7 Pro 64 bit
CPU
mini tower
Motherboard
h110m-k (lga1151)
Memory
4g
Graphics Card(s)
nvidia geforce gt730 graphics card
Sound Card
high definition audio device
Monitor(s) Displays
19" dell ultra sharp
Screen Resolution
1280 x 800
Hard Drives
Kingston SSD
PSU
?
Case
?
Cooling
?
Keyboard
standard ps/2 keyboard
Mouse
ps/2 compatible optical
Internet Speed
fiber optics
Antivirus
ESET Smart Security
Browser
IE11
Other Info
no Wifi. Bose speakers, optical drive tsstcorp dvd+-RW
Back
Top