Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: HeapAlloc not working in a 64-bit program

25 Mar 2013   #1

windows 7 Pro 64 bit
 
 
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

My System SpecsSystem Spec
.

26 Mar 2013   #2

windows 7 Pro 64 bit
 
 

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 System SpecsSystem Spec
Reply

 HeapAlloc not working in a 64-bit program





Thread Tools



Similar help and support threads for2: HeapAlloc not working in a 64-bit program
Thread Forum
"program has stopped working" error everytime I close a program. Performance & Maintenance
Firewall - allow program is not working System Security
virtual CD program not working Virtualization
The Program Has Stopped Working Software
Program has stopped working Software
auto run CD program not working Hardware & Devices
Program has stopped working -_- Gaming

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:18 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33