為什麼當我建立執行檔時會收到錯誤代碼 6?
主要軟體:
主要軟體版本: N/A
主要軟體修正版本: N/A
次要軟體: N/A
問題: 我使用LabVIEW Application Builder 來建立一個發佈軟體(i.e. 執行檔(EXE), 共享庫(DLL), 原始碼發佈(LLB),或是網路服務)。當我建立這個發佈時, 我收到類似下面的錯誤:
Error 6 occurred at AB_Source_VI.Lvclass
Possible reason(s):
LabVIEW: Generic File I/O error.
是甚麼導致這個錯誤,還有我該如何解決呢?
解答: 當建立一個發佈時, 發佈的程序可能會失敗。 當暫存資料夾內的資料夾建立後會引用Error 6.(以上面的例子來看,這個暫存的資料夾就是AB_Source.) 這個錯誤發生在當檔案路徑或是專案內的某個檔案超過Windows所限制的255個字元長. 執行下面的偵錯步驟來解決錯誤並成功建立你的發佈:
- 使用較短的路徑, 例如
c:\
- 確保你的檔案路徑沒有指向錯誤的資料碟, 例如說 CD 或 DVD 碟.
- 對於執行檔 (EXE) 或是共享庫 (DLL) 建立, 將建立規格(build specification)屬性對話視窗內的進階頁面裡的"Use LabVIEW 8.x file layout "勾選起來.
- 對於原始碼發佈或是網路服務(source distribution 或 web service)的建立, 將建立規格(build specification)屬性對話視窗內的Destinations頁面下的Destination type裡的"Preserve disk hierarchy"取消勾選.

相關連結: KnowledgeBase 2D5BNHDT: What Are Some Advanced Abilities of the LabVIEW Application Builder?External Link: MSDN: File Names, Paths, and Namespaces (Windows) KnowledgeBase 4ZNDQ2P4: Why Does Build Specifications Not Appear in My Project Explorer?Developer Zone Tutorial: LabVIEW 2009 Known Issues
附加檔案:
報告日期: 10/12/2009
最後更新: 03/15/2015
文件偏號: 52BF05ZY
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.