readded !Debug to disable exception handlers in debug mode, fixed ExtendedListView native string creation, changed ExtendedListView tests

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2145 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
dmex04
2009-10-12 00:05:17 +00:00
parent ae71006b05
commit 9e13b50993
2 changed files with 38 additions and 26 deletions
+2
View File
@@ -125,11 +125,13 @@ namespace ProcessHacker
Environment.Exit(1);
}
#if !DEBUG
// Setup exception handling at first opportunity to catch exceptions generatable anywhere.
Application.ThreadException += new ThreadExceptionEventHandler(Application_ThreadException);
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true);
#endif
try
{
pArgs = ParseArgs(args);