Heap corruption was detected in heap 0x8bbfbe6d

vnkk

New member
Local time
7:43 AM
Messages
1
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 Computer My Computer

At a glance

windows 7 32 bit
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell
OS
windows 7 32 bit
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 Computer My Computer

At a glance

7 x64 UltimateAMD Ryzen 516GB DDR4Radeon R7 360
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
7 x64 Ultimate
CPU
AMD Ryzen 5
Motherboard
Gigabyte GA-AB350-Gaming
Memory
16GB DDR4
Graphics Card(s)
Radeon R7 360
Monitor(s) Displays
2 x Dell U2518D
Screen Resolution
2560x1440 2560x1440
Hard Drives
WD 500GB x2
Samsung SSD 128MB (OS)
XPG SX8200 Pro M.2 2280 1TB
PSU
Antec 500
Cooling
Hyper 212 EVO
Keyboard
Logitech cordless K800
Mouse
Logitech M510
Antivirus
Avira
Back
Top