Tsaras
Tsaras

Reputation: 493

COM call on busy object blocks indefinitely (HRESULT: 0x8001010A)

I am getting a specific COM object (application instance) from the ROT and trying to send commands to it. The specific application does not respond to COM calls before initialization (i.e. is busy). I would like to be notified when this is the case so I can abort the operation and show a message.

When I run the command using the following code snippet from a console application I get a COMException with a message:

The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))

Code:

try {
    comObject.someMethod();
}
catch (COMException) {
    // HRESULT:0x08001010A error
}

However, I am also trying to run this from a Grasshopper plugin and in this case, the program blocks indefinitely on the comObject.someMethod() line.

I don't know where to start troubleshooting this issue and if possible, have the exception show up in the plugin as well. Any ideas?

Upvotes: 0

Views: 58

Answers (0)

Related Questions