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
phenix

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
phenix

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
Thread Forum
How to check if a program is working?
Here's the situation. I'm using an account with admin rights (not the built in admin account) and I've heard that it's not a good idea to run browsers and the like using an admin account. Anyway I'm trying SrtipMyRights: StripMyRights - Based on DropMyRights Instructions state to run a...
General Discussion
Every Program Stopped working
So, this problem really distrub me, when i wanted to play games there's "X has stopped working", it occured when in the middle of the game or when the game launch. It was also occured with my Chrome, Modem, and even my anti virus. I've tried to config the DEP but, it's still not working. And for...
BSOD Help and Support
virtual CD program not working
I've just setup/installed Windows 7 32-Bit and looks like everything is OK but I installed a virtual CD program/s (i.e. Daemon Tools, PowerISO and or MagicISO) my system is not detecting the virtual CD's that Daemon Tools, PowerISO and or MagicISO have created. can you suggest any procedures for...
Virtualization
auto run CD program not working
Hello every body, I have a problem with CD auto run with Win 7 and bellow is showing the error msg : http://img713.imageshack.us/img713/6095/97926236.png Note: the program which is on CD was run and setup well in WinXP so can you advice me how can run this program in Win7?
Hardware & Devices
Program has stopped working -_-
I'm sure many of us have encountered this problem, and before I hear from people who say "you need to check to make sure other threads haven't been made about this", I already did...and their solutions didn't help. Hence, the starting of my own thread. I've never really had a problem with...
Gaming
Volume from one program not working
I think I accidently disabled the volume from one program because whenever I open up the program, it's no longer showing up under the "Volume Mixer" as an application. Every other program I open has it's volume working just fine and shows up under the Volume Mixer as always. My question is how...
Sound & Audio

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 04:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App