Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to handle my C++ program crash on a system w/o development IDE?

I am testing my C++ app crash on a Windows 8 system that does not have development IDE installed (Visual Studio C++.) I was able to get the following from the Windows Event log:

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: my_app_name.exe
P2: 1.0.2.0
P3: 4fffd4db
P4: my_app_name.exe
P5: 3.0.2.0
P6: 4fffd4db
P7: c0000005
P8: 00074eb0
P9: 
P10: 

Attached files:
C:\Windows\Temp\WER4AEB.tmp.appcompat.txt
C:\Windows\Temp\WER4B0B.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WER4B0C.tmp.hdmp
C:\Windows\Temp\WER4CD2.tmp.dmp

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_my_app_name.exe_8ea1c961fdc39248f2954cb7413ed349afffc9_cab_0d004d0d

Analysis symbol: 
Rechecking for solution: 0
Report Id: 4c93c3b5-ccc2-11e1-9b6e-000c297b96e1
Report Status: 4
Hashed bucket: 

I was trying to go to those paths provided to get the .hdmp and .dmp files but there's nothing where it points in that report.

Any idea how to handle this situation?

like image 274
ahmd0 Avatar asked Dec 31 '25 19:12

ahmd0


1 Answers

I think your service crash dumps maybe written to here:

%WINDIR%\System32\Config\SystemProfile

according to this not sure if this is still the same path for Win 8.

You can use AdPlus or ProcDump or programmatically do this using MiniDumpWriteMiniDump to write the memory dumps to a location of your choice, also ETW can be used for event tracing.

The dump files can be open in Visual studio or WinDbg and you can then look at the app state.

In WinDbg:

!analyze -v

will attempt to find the cause of the crash for you, hope this helps.

like image 186
EdChum Avatar answered Jan 03 '26 09:01

EdChum



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!