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: Heap corruption was detected in heap 0x8bbfbe6d

09 Sep 2016   #1

windows 7 32 bit
Heap corruption was detected in heap 0x8bbfbe6d

I am in virtual enviroment and windows 7 32 bit in it.

I have my own .net windows application which is used to calculate sales.
after calculating week sales, when I try to print the document

when I print to toshiba printer, it is working fine and I dont have any issues.

when I print to HP printer from my application, my application crashes unexpectedly.

this happens randomly.

Below is the error:

Faulting application name: MyApplication.exe, version: *****, time stamp: 0x578e799c Faulting module name: ntdll.dll, version: ******, time stamp: 0x573a54ca Exception code: 0xc0000005 Fault offset: 0x00000000000438df Faulting process id: 0x22a8c Faulting application start time: 0x01cf4a1f36447f86 Faulting application path: C:\Program Files\MyApplication\MyApplication.exe Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll Report Id: 3e2eb1a7-b615-10e3-bf1b-94a6h885c29

When I used the crash dump and debugged the application, I got the below result:

In App__PID__4120__Date__08_29_2016__Time_11_13_58AM__139__Second_Chance_Exception_C0000005.dmp the assembly instruction at ntdll!RtlpLowFragHeapFree+c5 in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to write to memory location 0x00000000 on thread 0 Heap corruption was detected in heap 0x94f5d000 However pageheap was not enabled in this dump. Please follow the instructions in the recommendation section for troubleshooting heap corruption issues. Current NTGlobalFlags value: 0x0

The finalizer thread is probably tring to release an instance of an STA COM component, and it is stuck waiting for the STA thread to become available. To resolve this problem, call Marshal.ReleaseComObject to clean up the references for all apartment-threaded COM components that you have used in your code deterministically (immediately), rather than waiting for the Finalizer Thread to do it at a later time.

Please help me how to solve the issue.
My System SpecsSystem Spec
11 Sep 2016   #2

7 x64 Ultimate

Just guessing here, but have you tried uninstalling/ reinstalling your HP printer drivers? I have had legions of quirky issues with HP printers over the years and trying to diagnose and correct errors on the basis of error reports was for the most part a hopeless quest. Remove the printer and all the associated drivers (if possible), then reinstall using drivers from Windows update if available.

HP does make a tool to remove old driver references, if you can find it.
My System SpecsSystem Spec

Thread Tools

Similar help and support threads
Thread Forum
heap versus globalalloc functions
Running windows 7 64-bit. In the past I was running a 32-bit puter and seemed to use the globalalloc functions without to many problems. This particular program is giving me fits in converting it from 32-bit to 64-bit. Questions: are the Globalalloc functions the cause of my problem in a...
Heap Leak Detection and Win7
I need some help with this. I found it in the registry as a key and within it are some programs that appear to have triggered some some sort of leak detection. However, I know of no program with windows 7 that allows you to view those applications reported in the registry (heapleakdetection). ...
General Discussion
Desktop heap allocation failure
I have upgraded my Vista Home Premium system to Windows 7 Home premium 64 bit. I am getting an error logged with a ID of 243 and a description of desktop Heap allocation failure. This happens at boot thus there is no windows open other than the desktop itself. Any help would be appreciated.
BSOD Help and Support

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 16:37.
Twitter Facebook