I have some F# code that calls a method on a COM Automation object. Sometimes that COM object throws an exception.
I tried wrapping the calls to the COM object in a try...with block:
try do some COM stuff with _ -> Printf.printf "got an exn\r\n"
But the exception-handling code isn't called at all, the application just dies.
The message I see on the console is typically:
The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
How can I trap the COM exception?