[Mono-list] Not all subscribers to event are being called...

Mark Probst mark.probst at gmail.com
Mon Jul 6 19:43:14 EDT 2009


Ryan Kirkpatrick wrote:
> This change swapped the order of the optimized delegate invocation with
> the standard (non-virtual) delegate invocation. Apparently that
> optimized version, using delegate trampolines, broke my code. This
> optimization is only enabled if
> MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE is defined (in my case in
> mini-x86.h), and when it was not enabled (by commenting out the
> #define), then current versions of Mono (namely the SVN trunk HEAD) was
> able to run my code without issue.
>
> I tried, but failed (again, short on brain cycles :), to understand how
> this change was breaking my code. Apparently these delegate trampoline
> optimizations and the events in my code do not mix well. I do not have a
> test case I can provide, so if some one can resolve this issue based on
> the above (and original problem description below), that would be great.

Are there by any chance generic classes or generic methods involved in
the code that breaks?

Have you tried running the app with generic sharing disabled (set the
environment variable MONO_GENERIC_SHARING=none)?

Could you please test whether your app works with r122085 (or earlier)?

Mark


More information about the Mono-list mailing list