[Mono-bugs] [Bug 672879] ReleaseInterfaces is called by GC thread.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Sep 2 14:34:20 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=672879
https://bugzilla.novell.com/show_bug.cgi?id=672879#c8
--- Comment #8 from tom hindle <tom_hindle at sil.org> 2011-09-02 18:34:19 UTC ---
Great! Thanks.
Should this be only done if ApparmentState == STA?
eg.:
~__ComObject ()
{
var ctx = SynchronizationContext.Current;
if (ctx != null && Thread.GetApartmentState == ThreadState.STA)
SynchronizationContext.Current.Post(delegate {
ReleaseInterfaces ();
});
else
ReleaseInterfaces ();
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list