Fault Module Name: KERNELBASE.dll 解決辦法,SFC 使用教學

今天在 windows 7 上面使用 winform 程式,在關閉時跳出了錯誤訊息:

訊息內容如下:
  
RuyutWinFormsAppExample has stopped working
windows can check online for a solution to the problem.

Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	RuyutWinFormsAppExample.exe
  Application Version:	1.0.0.0
  Application Timestamp:	6283e0e1
  Fault Module Name:	KERNELBASE.dll
  Fault Module Version:	6.1.7601.24545
  Fault Module Timestamp:	5e0eb6bd
  Exception Code:	e0434352
  Exception Offset:	000000000000b87d
  OS Version:	6.1.7601.2.1.0.256.48
  Locale ID:	1033
  Additional Information 1:	058c
  Additional Information 2:	058c3d08d0fcad38b24da00343fc16b7
  Additional Information 3:	58f2
  Additional Information 4:	58f29816ae3e3df94d5114e6054abe85

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt



該錯誤沒有影響到程式執行(因為在關閉時才出現),但就是覺得很礙眼,且可能其實對程式的執行有影響。

在遇到這種錯誤時,我們可以先試試看使用「系統檔案檢查程式工具 (SFC.exe)」

執行 系統檔案檢查程式工具

首先以系統管理員身份執行命令提示字元,我們可以使用下面這行指令查看 SFC 有哪些指令可以使用
    
sfc /?
    

執行結果:

從上圖得知,我們可以直接使用下面這行指令來嘗試讓系統自動修復問題:
    
sfc /SCANNOW
    

執行結果:

因為筆者目前使用的電腦沒有遇到錯誤,如果有發現問題或是修復的話,上面會顯示 log 檔案的路徑,可以開啟查看。

筆者很幸運的使用 sfc 就解決了問題,如果下次再遇到相似的問題不妨也可以先試試看這種方式,或許就能解決了!

參考資料: 使用系統檔案檢查程式工具來修復遺失或損毀的系統檔案

留言