[Mono-dev] PR944 - Improve COM error handling

Rodrigo Kumpera kumpera at gmail.com
Thu Oct 30 16:26:01 UTC 2014

On Thu, Oct 30, 2014 at 3:13 AM, Eberhard Beilharz <eb1 at sil.org> wrote:

>  The code in your pull request is windows specific so it won't work on
> unix.
>  No, it isn't. It's possible to build a Unix library that emulates the
> Windows COM implementation - as we did it in our projects (
> https://github.com/sillsdev/libcom), and a mapping of oleaut32.dll to
> that library.
> The code in the pull request deals with the possibility that there is no
> suitable COM implementation available, but if there is it'll make use of it.

I see, you're right, I didn't pay enough attention to the change.
Perhaps we could add a wiki page to mono-project that explains this and
link to your implementation as a reference (if you feel inclined to).

Said that, catching Exception is not ideal, it will break some threading
operations such as soft aborts that are not automatically rethrown or
internal VM errors.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141030/2421e194/attachment.html>

More information about the Mono-devel-list mailing list