我有一些調用COM自動化對象的方法的F#代碼。有時該COM對象引發異常。F中捕獲COM異常#
我試圖包裹在一個嘗試的COM對象的調用...用塊:
try do some COM stuff with _ -> Printf.printf "got an exn\r\n"
但異常處理代碼不叫所有的應用程序只是死了。
我在控制檯上看到的消息通常是:
The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
怎樣可以捕獲的COM例外呢?