[svn] Restore automatic crashlog generation on Windows. Make sure to have a Crashes folder in the working directory of the executables.

--HG--
branch : trunk
This commit is contained in:
w12x
2008-10-23 05:57:15 -05:00
parent b8362cd7f1
commit c98b24cf29
7 changed files with 49 additions and 3 deletions

View File

@@ -14,8 +14,7 @@
#define _NO_CVCONST_H
#include <dbghelp.h>
#include "WheatyExceptionReport.h"
#include "svn_revision.h"
#define CrashFolder _T("Crashs")
#define CrashFolder _T("Crashes")
//#pragma comment(linker, "/defaultlib:dbghelp.lib")
inline LPTSTR ErrorMessage(DWORD dw)
@@ -386,7 +385,6 @@ PEXCEPTION_POINTERS pExceptionInfo )
GetLocalTime(&systime);
// Start out with a banner
_tprintf(_T("Revision: %s\r\n"), SVN_REVISION);
_tprintf(_T("Date %u:%u:%u. Time %u:%u \r\n"), systime.wDay, systime.wMonth, systime.wYear, systime.wHour, systime.wMinute);
PEXCEPTION_RECORD pExceptionRecord = pExceptionInfo->ExceptionRecord;

View File

@@ -211,6 +211,14 @@ copy ..\..\src\trinitycore\trinitycore.conf.dist ..\..\bin\$(PlatformName)_$(Con
<File
RelativePath="..\..\src\trinitycore\TrinityCore.rc">
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.cpp"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.h"
>
</File>
<File
RelativePath="..\..\src\trinitycore\WorldRunnable.cpp">
</File>

View File

@@ -176,6 +176,14 @@
<File
RelativePath="..\..\src\trinityrealm\TrinityRealm.rc">
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.cpp"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.h"
>
</File>
</Files>
<Globals>
</Globals>

View File

@@ -493,6 +493,14 @@
RelativePath="..\..\src\trinitycore\TrinityCore.rc"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.cpp"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.h"
>
</File>
<File
RelativePath="..\..\src\trinitycore\WorldRunnable.cpp"
>

View File

@@ -449,6 +449,14 @@
RelativePath="..\..\src\trinityrealm\TrinityRealm.rc"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.cpp"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.h"
>
</File>
</Files>
<Globals>
</Globals>

View File

@@ -486,6 +486,14 @@
RelativePath="..\..\src\trinitycore\TrinityCore.rc"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.cpp"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.h"
>
</File>
<File
RelativePath="..\..\src\trinitycore\WorldRunnable.cpp"
>

View File

@@ -438,6 +438,14 @@
RelativePath="..\..\src\trinityrealm\TrinityRealm.rc"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.cpp"
>
</File>
<File
RelativePath="..\..\src\shared\WheatyExceptionReport.h"
>
</File>
</Files>
<Globals>
</Globals>