Win2008 R2 WER ( error reporting ) LocalDumps blocked by what?
I Just want to recover crash dumps of my own 32bit applications.
I tried the following:
I followed the steps at MSDN "Collecting User-Mode Dumps": http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181%28v=vs.85%29.aspx
Somewhere on the internet I saw a mention about WER registry keys for 32 bit apps do NOT have to be added under HKLMSoftwareWOW6432NodeMicrosoftWindowsWindows Error ReportingLocalDumps
Also that the ..Windows NTAeDebugAuto (REG_SZ)
value must be "0"
Additionally, I have WER error entries in the 'system event viewer' under "Windows LogsApplications&ServicesMicrosoftWindowsWER-DiagnosticsOperational"
Showing messages "Possible heap corruption detected (code 3221225477)"
I don't know if this message relates to my test-app creating a NPE, or if this is WER itself having a problem?
I just can't get it to work :( Can anyone give me some clues ?
Update : For another fresh 2008R2 x64 machine, i just did the
HKLMSoftware... ReportingLocalDumpsDumpFolder = "c:crashdumps"
HKLMSoftware... ReportingLocalDumpsDumpType = 2 (REG_DWORD)
HKLMSoftware... ReportingLocalDumpsDumpCount = 20 decimal (REG_DWORD)
And running the nulpointer-terster worked as expected.
So im thinking there must be a settings in these other machines which prohibit LocalDumps from being used, although the LocalDumps registry-keys are there..
I think you have already checked most of the common problems. There are 3 more:
Permissions of the folder to write to
Looking at the permissions of the folder C:ProgramDataMicrosoftWindowsWER
it has
Creating a subfolder LocalDumps
will inherit the permissions.
So you should either modify the permissions of that folder or use a different folder with write permissions.
Permissions of the Registry key
Windows might not be able to read the Registry settings if the permissions do not allow it. Eg the following (really silly) permissions will prevent a LocalDump as well:
LocalDumps is disabled
Make sure that there is no DWORD Disabled
with a value of 1
in HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumps
上一篇: Java日期月份差异