次のコード行をデバッグするためにスタックトレースを使用すると、私に例外が正しく
plug.Instance.AddDocuments(new Int32[] { val_pid }, val_ptype, val_doccat, val_subcat, val_doctype, val_notes, val_summary, SummaryAppendOptions.None, val_docStatus, new String[] { PDFFile })
を引き起こし、これは例外の詳細です。
System.Exception was caught
Message=Object reference not set to an instance of an object. - Error when trying to save document
Source=SimsBridge
StackTrace:
at SimsBridge.Bridge.AddDocuments(Int32[] personIds, Int32 PersonType, String docCatagory, Int32 subCatagory, String docType, String notes, String summary, SummaryAppendOptions summaryOptions, String documentStatusCode, String[] filePaths)
at ManagedScanDesktop.Form1.SimsScanComplete(String[] files) in C:\Working\ManagedScanDesktop 1.8\v1.8\ManagedScanDesktop\ManagedScanDesktop\Form1.cs:line 2619
InnerException:
私は実際の例外に対する解決策を探していません。
私の質問は、メソッドのどの部分に参照が設定されていないかを示すスタックトレースですか?または、スタックトレースは、メソッドの呼び出し先をトレースするだけですか?
あなたが言う2番目の声明。 –