[corlib] Fix exception in __ComObject finalizer during shutdown
authorDamien Daspit <damien_daspit@sil.org>
Tue, 2 Dec 2014 08:35:09 +0000 (15:35 +0700)
committerEberhard Beilharz <eb1@sil.org>
Fri, 29 Jan 2016 21:50:10 +0000 (22:50 +0100)
commitfb4bc1b7cd601a97bb86088f2a652362d480187d
tree42c101885920f74261aff99638f81cf6bf54965e
parenta65739d19518a0987f79fbb7c5d569b43755390c
[corlib] Fix exception in __ComObject finalizer during shutdown

* keep a reference to a __ComObject's proxy so it doesn't get garbage
  collected
* don't create __ComObjects unnecessarily
* Fix for bug 24974

Change-Id: Ia09237b7f1af996405134c250bbc29220f81f067
mcs/class/corlib/Mono.Interop/ComInteropProxy.cs
mcs/class/corlib/System/__ComObject.cs