Page 1 of 1

if App was closed disconnecting ComObjConnect(Obj) fails

Posted: 12 Sep 2014, 12:47
by alllala
I´m using Foobar with Com http://www.autohotkey.com/board/topic/5 ... ntry622731 but having trouble disconnecting the event-handle when foobar was closed premature. I then get an error message saying the RPC Server is unavailable.

Is it possible at all to disconnect the Object, if foobar is closed?

This happens if I restart my PC. Foobar is closed before my script and the error message prevents then the restart.

Re: if App was closed disconnecting ComObjConnect(Obj) fails

Posted: 12 Sep 2014, 20:34
by lexikos
Without the remote process in which the object really lives, there is no connection to disconnect. ;)

You can suppress the error message using ComError(0) or Try.