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_hin...@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.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to