mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
Add the full source of BambuStudio
using version 1.0.10
This commit is contained in:
parent
30bcadab3e
commit
1555904bef
3771 changed files with 1251328 additions and 0 deletions
31
src/BaseException.h
Normal file
31
src/BaseException.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
#include <boost/nowide/cstdio.hpp>
|
||||
#include <boost/nowide/fstream.hpp>
|
||||
#include "stackwalker.h"
|
||||
#include <eh.h>
|
||||
|
||||
class CBaseException : public CStackWalker
|
||||
{
|
||||
public:
|
||||
CBaseException(HANDLE hProcess = GetCurrentProcess(), WORD wPID = GetCurrentProcessId(), LPCTSTR lpSymbolPath = NULL, PEXCEPTION_POINTERS pEp = NULL);
|
||||
~CBaseException(void);
|
||||
virtual void OutputString(LPCTSTR lpszFormat, ...);
|
||||
virtual void ShowLoadModules();
|
||||
virtual void ShowCallstack(HANDLE hThread = GetCurrentThread(), const CONTEXT* context = NULL);
|
||||
virtual void ShowExceptionResoult(DWORD dwExceptionCode);
|
||||
virtual BOOL GetLogicalAddress(PVOID addr, PTSTR szModule, DWORD len, DWORD& section, DWORD& offset );
|
||||
virtual void ShowRegistorInformation(PCONTEXT pCtx);
|
||||
virtual void ShowExceptionInformation();
|
||||
static LONG WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS pExceptionInfo);
|
||||
static LONG WINAPI UnhandledExceptionFilter2(PEXCEPTION_POINTERS pExceptionInfo);
|
||||
static void STF(unsigned int ui, PEXCEPTION_POINTERS pEp);
|
||||
//BBS set crash log folder
|
||||
static void set_log_folder(std::string log_folder);
|
||||
protected:
|
||||
PEXCEPTION_POINTERS m_pEp;
|
||||
boost::nowide::ofstream *output_file;
|
||||
};
|
||||
|
||||
#define SET_DEFULTER_HANDLER() SetUnhandledExceptionFilter(CBaseException::UnhandledExceptionFilter)
|
||||
|
||||
#define SET_DEFAUL_EXCEPTION() _set_se_translator(CBaseException::STF)
|
Loading…
Add table
Add a link
Reference in a new issue