fixed GetDiagnosticInformation() where under some instances a NullReferenceException occurs by a call to SecondarySharedThreadProvider.

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2016 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
dmex04
2009-10-01 18:06:35 +00:00
parent 8367dfb059
commit 9fd22a035a
+4 -3
View File
@@ -128,10 +128,9 @@ namespace ProcessHacker
//Exclude PH from WER after setting up exception handling otherwise PH will be permanatly queued in Vista/Win7 Problem Reports and Solutions
//the data and infomation will be sent to Microsoft and is completely useles to us without a DigitalCertificate
//Native.Api.Win32.AddERExcludedApplication(AppDomain.CurrentDomain.FriendlyName);
// Native.Api.Win32.WerAddExcludedApplication(AppDomain.CurrentDomain.FriendlyName, false);
//Native.Api.Win32.WerAddExcludedApplication(AppDomain.CurrentDomain.FriendlyName, false);
//#endif
try
{
pArgs = ParseArgs(args);
@@ -881,10 +880,12 @@ namespace ProcessHacker
info.AppendLine();
info.AppendLine("PRIMARY SHARED THREAD PROVIDER");
info.AppendLine("Count: " + SharedThreadProvider.Count.ToString());
if (SharedThreadProvider != null)
{
info.AppendLine("Count: " + SharedThreadProvider.Count.ToString());
foreach (var provider in SharedThreadProvider.Providers)
info.AppendLine(provider.GetType().FullName +
" (Enabled: " + provider.Enabled +