基线:全量源码首提(D1 版本控制落地,含第一轮优化 B1-B4/A1/A4/缩放修复)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// 复现 OCR 设置窗报错,把完整异常写到文件
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace pdfbt
|
||||
{
|
||||
static class ShowErr
|
||||
{
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
try
|
||||
{
|
||||
var f = new OcrSettingsForm(null);
|
||||
f.Show();
|
||||
Application.DoEvents();
|
||||
FileLog("窗口创建成功,无异常");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FileLog("EX: " + ex);
|
||||
var inner = ex.InnerException;
|
||||
while (inner != null) { FileLog("INNER: " + inner); inner = inner.InnerException; }
|
||||
}
|
||||
}
|
||||
static void FileLog(string s)
|
||||
{
|
||||
System.IO.File.AppendAllText(@"C:\Users\099978\Documents\SharpDevelop Projects\pdfbt\showerr.log", s + "\r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user