[Mono-devel-list] marshal.c assertion failed.

Willibald Krenn Willibald.Krenn at gmx.at
Thu Feb 24 06:49:47 EST 2005


Hi!

I might be mistaken, but I think you don't need to switch-back the 
domain here. So I assume the one-liner below should also work..

>        if (o->vtable->klass->delegate) {
>                MonoDelegate* del = (MonoDelegate*)o;
> -               if (del->delegate_trampoline)
> +
> +               if (del->delegate_trampoline) {
			mono_domain_set_internal (mono_object_domain (o));
                         mono_delegate_free_ftnptr ((MonoDelegate*)o);
> +               }
>                return;

 > [...]
 > I still see this on occasion, so my patch is obviously not working
 > 100%.

The blessings of automated garbage collection ;-)

Willi




More information about the Mono-devel-list mailing list