mirror of https://github.com/BOINC/boinc.git
parent
977ef1742d
commit
7abaf6833d
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,55 @@
|
|||
/*////////////////////////////////////////////////////////////////////////////
|
||||
* Project:
|
||||
* Memory_and_Exception_Trace
|
||||
*
|
||||
* ///////////////////////////////////////////////////////////////////////////
|
||||
* File:
|
||||
* Stackwalker.h
|
||||
*
|
||||
* Remarks:
|
||||
*
|
||||
*
|
||||
* Note:
|
||||
*
|
||||
*
|
||||
* Author:
|
||||
* Jochen Kalmbach
|
||||
*
|
||||
*////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __STACKWALKER_H__
|
||||
#define __STACKWALKER_H__
|
||||
|
||||
// Only valid in the following environment: Intel platform, MS VC++ 5/6/7
|
||||
#ifndef _X86_
|
||||
#error Only INTEL envirnoments are supported!
|
||||
#endif
|
||||
|
||||
// Only MS VC++ 5 to 7
|
||||
#if (_MSC_VER < 1100) || (_MSC_VER > 1300)
|
||||
#error Only MS VC++ 5/6/7 supported. Check if the '_CrtMemBlockHeader' has not changed with this compiler!
|
||||
#endif
|
||||
|
||||
typedef enum eAllocCheckOutput
|
||||
{
|
||||
ACOutput_Simple,
|
||||
ACOutput_Advanced,
|
||||
ACOutput_XML
|
||||
};
|
||||
|
||||
// Make extern "C", so it will also work with normal C-Programs
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern int InitAllocCheckWN(eAllocCheckOutput eOutput, LPCTSTR pszFilename, ULONG ulShowStackAtAlloc = 0);
|
||||
extern int InitAllocCheck(eAllocCheckOutput eOutput = ACOutput_Simple, BOOL bSetUnhandledExeptionFilter = TRUE, ULONG ulShowStackAtAlloc = 0); // will create the filename by itself
|
||||
|
||||
extern ULONG DeInitAllocCheck();
|
||||
|
||||
extern DWORD StackwalkFilter( EXCEPTION_POINTERS *ep, DWORD status, LPCTSTR pszLogFile);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __STACKWALKER_H__
|
|
@ -18,10 +18,24 @@
|
|||
//
|
||||
|
||||
#include "wingui_mainwindow.h"
|
||||
#include "Stackwalker.h"
|
||||
|
||||
CMyApp g_myApp;
|
||||
CMainWindow* g_myWnd = NULL;
|
||||
|
||||
static struct _test
|
||||
{
|
||||
_test()
|
||||
{
|
||||
InitAllocCheck();
|
||||
}
|
||||
|
||||
~_test()
|
||||
{
|
||||
DeInitAllocCheck();
|
||||
}
|
||||
} _myLeakFinder;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// CMyApp member functions
|
||||
|
||||
|
|
|
@ -214,6 +214,10 @@ SOURCE=..\client\ss_logic.C
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\client\win\Stackwalker.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\Client\time_stats.C
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -370,6 +374,10 @@ SOURCE=..\client\ss_logic.h
|
|||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\client\win\Stackwalker.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\client\time_stats.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
|
Loading…
Reference in New Issue