Yap.exe DDE錯誤

Yap.exe DDE錯誤

我希望有人能指出 yap.exe 可能配置錯誤。

我剛剛在 Windows 10 上(重新)安裝了 MikTeX 2.9 供我個人使用(即不使用管理員權限,因為這是公司電腦)。我可以透過右鍵單擊 dvi 檔案並選擇“開啟方式”選項來啟動 Yap.exe。但是,如果我從命令列啟動 yap,或雙擊 dvi 文件,我會收到「Windows API 錯誤 122:傳遞給系統呼叫的資料區域太小」。且該文件無法開啟。

更準確地說,如果我雙擊 dvi 文件,我會在 yap.log 文件中看到以下內容...

2020-09-14 15:13:28,662-0400 INFO  yap - this is Yap 4.0 (MiKTeX 20.7)
2020-09-14 15:13:28,662-0400 INFO  yap - this process (4988) started by 'explorer' with command line: /dde
2020-09-14 15:13:28,727-0400 ERROR yap.core - The data area passed to a system call is too small.

2020-09-14 15:13:28,727-0400 ERROR yap.core - Function: Process32NextW
2020-09-14 15:13:28,727-0400 ERROR yap.core - Result: 122
2020-09-14 15:13:28,727-0400 ERROR yap.core - Data: 
2020-09-14 15:13:28,727-0400 ERROR yap.core - Source: Libraries\MiKTeX\Core\Process\win\winProcess.cpp:637
2020-09-14 15:13:28,728-0400 ERROR yap - Libraries\MiKTeX\Core\Process\win\winProcess.cpp:637: Windows API error 122: The data area passed to a system call is too small.
()
2020-09-14 15:13:46,577-0400 INFO  yap - this process (4988) finishes with exit code 0 

但如果我使用「開啟方式」呼叫 yap.exe 的方法,我會在日誌檔案中看到以下內容,並且檔案可以正確開啟...

2020-09-14 15:16:45,377-0400 INFO  yap - this is Yap 4.0 (MiKTeX 20.7)
2020-09-14 15:16:45,377-0400 INFO  yap - this process (16172) started by 'OpenWith' with command line: /dde
2020-09-14 15:16:45,478-0400 INFO  yap - OnDDECommand("[open("C:\Users\sthompson\Desktop\LaTeX\test.dvi")]")
2020-09-14 15:16:45,511-0400 INFO  yap - loading document: C:\Users\sthompson\Desktop\LaTeX\test.dvi
2020-09-14 15:16:52,710-0400 INFO  yap - this process (16172) finishes with exit code 0
2020-09-14 15:24:21,509-0400 INFO  yap - this is Yap 4.0 (MiKTeX 20.7)
2020-09-14 15:24:21,509-0400 INFO  yap - this process (5448) started by 'OpenWith' with command line: /dde
2020-09-14 15:24:21,615-0400 INFO  yap - OnDDECommand("[open("C:\Users\sthompson\Desktop\LaTeX\test.dvi")]")
2020-09-14 15:24:21,647-0400 INFO  yap - loading document: C:\Users\sthompson\Desktop\LaTeX\test.dvi
2020-09-14 15:24:26,317-0400 INFO  yap - this process (5448) finishes with exit code 0

相關內容