I have a C# application talking to a COM dll through Interop services.
When there is an exception in the COM it gives me back a HRESULT that I
can trap in my catch block
.. Is there anyway I can avoid going to the catch block and handle the
returning HRESULT before that ? The reason being
**"COM methods may occasionally change the data inside by-reference
parameters before returning a failure HRESULT. When such a method is
called from managed code, however, the updated values of any
by-reference parameters are not copied back to the caller before the
..NET exception is thrown ".**
I need to preserve the updated values of the call even though an
exception has occurred.