New
#1
Automatically generate crash dump after AppCrash
Hello,
I'm on this problem since a few days, searched google for hours, and also used your forum-search, but apparently there is no solution for my problem.
First of all, my PC runs Windows 7 Enterprise x64.
So, I have a custom application which generates a StackOverflowException.
It's configured, that the application starts completely, waits a minute and then generates the crash.
My Problem is, that there is no Crash Dump generated in C:/Windows/PCHEALTH/ERRORREP/QSIGNOFF (I found this path in my recherches, iirc is that the place where i can find the dumps).
Maybe someone of you can give me the info, how i am able to automatically generate such dumps instantly after the app crashes.
sorry for my not-so-good english,
seismo
EDIT:
I just found an article Windows and .NET Programming : Collecting crash dumps which should solve my problem, but in fact it does absolutely nothing...
this description fits exactly my problem, but doesn't solve it:
I don't want to use adplus, because of performance reasons, so i just want to have a dump created whenever a program crashes.What to do when the crashing process will be started in the future
An application crash is not always as easily reproducible as the ones from the CrashMe application. The special case when you know that a certain application will crash but don’t know under which circumstances can be handled in at least two ways:
a) Configuring the Windows Error Reporting to collect a customized dump when an application crashes. Here is a sample how to configure CDB to get dumps when any application crashes in Windows:
Set the following registry values of the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug
Debugger = "C:\Debuggers\cdb.exe" -p %ld -e %ld -g -c "~*k;.dump /mfh /u C:\Dumps\crash.dmp;.kill;qd"
Auto = “1”
Notes:
-“C:\Debuggers\cdb.exe” is the path to the CDB debugger, which might vary depending on the installation path of Debugging Tools for Windows.
-%ld will be provided by Windows and represents the PID of the process where the 2nd chance exception occurs.
- After the crash is collected, the crashing process is killed (this is specified by passing a custom command to CDB using the –c switch).
b) Monitoring for a certain process to start and to crash:
adplus.exe -crash -pmn notepad -o C:\Dumps
The parameter passed to adplus in –pmn is the name of the process to monitor and the parameter after –o is the directory where the DMP files will be collected.
EDIT2:
there is a tool called "User mode process dumper 8.1" (http://www.microsoft.com/downloads/d...displaylang=en) which is able to create dumps if a special process throws an exception or crashes. Unfortunately it cannot be installed under windows 7. I tested it under XP and it worked fine, so maybe someone can help here...
Last edited by seismo; 27 Apr 2010 at 08:30. Reason: additional info (User mode process dumper 8.1)