From ebfd7a15f5c7fe5d4cf9120a49b21f3cffd050f7 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 화, 10 8월 2021 18:40:18 +0900 Subject: [PATCH] 1. Defect Picking 기능 OFF --- ReviewSystem/ReviewSystem/stdafx.h | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/ReviewSystem/ReviewSystem/stdafx.h b/ReviewSystem/ReviewSystem/stdafx.h index e674365..d482171 100644 --- a/ReviewSystem/ReviewSystem/stdafx.h +++ b/ReviewSystem/ReviewSystem/stdafx.h @@ -38,6 +38,9 @@ #include "CHReviewResult/GlassResult.h" #include "CHReviewSetting/MotorParameter.h" +#include <DbgHelp.h> +#pragma comment ( lib, "DbgHelp" ) + #include <WinNetWk.h> //#pragma comment(lib,"Mpr.lib") @@ -85,6 +88,9 @@ #define _REVIEW_LOGIN_LOG_PATH_ _T("C:\\DIT_Review\\ReviewServerLog\\LoginLog") #define _REVIEW_REFLOW_RECIPE_PATH_ _T("C:\\DIT_Review\\Recipe\\Reflow") #define ALIGN_TEMPLATE_PATH _T("C:\\DIT_Review\\Recipe\\AlignImage") +#define _REVIEW_RECIPE_BACKUP_PATH_CPJT _T("\\\\126.100.100.5\\d\\DIT Back up\\DIT Review\\Recipe") +#define _REVIEW_SERVER_SYSTEM_SETTING_BACKUP_PATH_CPJT _T("\\\\126.100.100.5\\d\\DIT Back up\\DIT Review\\ReviewServerConfig") + #define TOTAL_WINDOW_SIZE_X 1920 #define TOTAL_WINDOW_SIZE_Y 1040 @@ -400,4 +406,30 @@ char strMessageString[MAX_PATH]; }; -BOOL KillProcess(CString ProcessName);BOOL getStateProcess(CString ProcessName); \ No newline at end of file +BOOL KillProcess(CString ProcessName);BOOL getStateProcess(CString ProcessName); + +// �꽑�뼵 +static LONG CALLBACK TopLevelExceptionFilterCallBack(EXCEPTION_POINTERS* exceptionInfo); + +LONG CALLBACK TopLevelExceptionFilterCallBack(EXCEPTION_POINTERS * exceptionInfo) +{ + MINIDUMP_EXCEPTION_INFORMATION dmpInfo = { 0 }; + dmpInfo.ThreadId = ::GetCurrentThreadId(); // Threae ID + dmpInfo.ExceptionPointers = exceptionInfo; // Exception Info + dmpInfo.ClientPointers = FALSE; + CTime time; + CString strStamp; + + SYSTEMTIME currentTime; + ::GetLocalTime(¤tTime); + time = CTime::GetCurrentTime(); + strStamp.Format(_T("Dump\\%02d_%02d_%02d_%02d_%02d_%02d.dmp"), time.GetYear(), time.GetMonth(), time.GetDay(), time.GetHour(), time.GetMinute(), time.GetSecond()); + + HANDLE hFile = CreateFile(strStamp, GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + + // �뜡�봽 �깮�꽦 + BOOL bWrite = ::MiniDumpWriteDump(::GetCurrentProcess(), ::GetCurrentProcessId(), hFile, MiniDumpNormal, &dmpInfo, NULL, NULL); + + return 0L; + +} \ No newline at end of file -- Gitblit v1.9.3