private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { SmartX.SmartFile m_smartFile = m_smartFile = new SmartX.SmartFile(); m_smartFile.FilePathName = "\\Flash Disk\\ErrorLog.txt"; if (m_smartFile.Open() == true) { m_smartFile.WriteString(e.ToString()); m_smartFile.Close(); } else { ; } // 처리되지 않는 모든 예외처리 코드 작성 }
public ScanLogFileManager() { this.m_smartFile = new SmartX.SmartFile(); }