Unhandled exception popup

menchar

New member
Joined
Jun 12, 2009
Messages
1
Programming Experience
10+
My apologies up front if I am posting in the wrong forum ...

I have a vb.net app that uses excel via ActiveX. If the user kills Excel instead of returning to the app and letting it do it, I get an unhandled exception popup for the exception RPC_E_DISCONNECTED when the app tries to close the (now non-existent) excel app.

I've tried catching the exception but to no avail - despite the offending code being in a try block, the popup appears instead of the catch block executing. I use Catch exc As Exception to catch all exceptions.

Thanks for any insight on this.

Menchar
 
Back
Top