init
This commit is contained in:
10
server/LogicServer/except/CustomExceptHander.cpp
Normal file
10
server/LogicServer/except/CustomExceptHander.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "StdAfx.h"
|
||||
#include "StackWalker.h"
|
||||
|
||||
#ifdef WIN32
|
||||
DWORD CustomExceptHandler(const LPEXCEPTION_POINTERS lpPointers)
|
||||
{
|
||||
SHOW_CALLSTACK();
|
||||
return DefaultExceptHandler(lpPointers);
|
||||
}
|
||||
#endif
|
||||
10
server/LogicServer/except/CustomExceptHander.h
Normal file
10
server/LogicServer/except/CustomExceptHander.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
/************************************************************************/
|
||||
/* 自定义SEH异常处理Handler,输出异常类型、异常发生地址等信息,并且进行栈回溯。用于解决
|
||||
某些不是 特别重要的异常发生被捕获后,继续程序的执行,但是可能导致的一些潜在的问题不被发现,
|
||||
导致后面很定位的问题。
|
||||
/************************************************************************/
|
||||
#ifdef WIN32
|
||||
DWORD CustomExceptHandler(const LPEXCEPTION_POINTERS lpPointers);
|
||||
#endif
|
||||
Reference in New Issue
Block a user