[Mono-devel-list] Re: AppDomain.Unload issue on Windows ?
Jackson Harper
jackson at ximian.com
Wed Mar 17 16:16:08 EST 2004
Ugh I guess I should attach the test case ;-).
Jackson
On Wed, 2004-03-17 at 13:13, Jackson Harper wrote:
> Hi Gert,
>
> Thanks for the report. I dont actually have mono setup on windows right
> now. So I am CCing the list in hopes that someone else can test this.
>
> Thanks,
> Jackson
>
> > I get the following error on Windows when executing the attached code :
> >
> > ** ERROR **: file threads.c: line 933
> > (ves_icall_System_Threading_Thread_Abort): should not be reached
> > aborting...
> >
> > Can you verify whether you can reproduce this on Windows ?
> >
> > Gert
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
using System;
using System.Globalization;
using System.Reflection;
namespace AppDomainUnload {
public class Test {
public static void Main() {
AppDomain testDomain = AppDomain.CreateDomain("TestDomain");
TypeGatherer typeGatherer = (TypeGatherer)
testDomain.CreateInstanceAndUnwrap(typeof(TypeGatherer).Assembly.FullName,
typeof(TypeGatherer).FullName, false, BindingFlags.Public | BindingFlags.Instance,
null, new object[0], CultureInfo.InvariantCulture, new object[0],
AppDomain.CurrentDomain.Evidence);
AppDomain.Unload(testDomain);
}
private class TypeGatherer : MarshalByRefObject {
public TypeGatherer() {
}
}
}
}
More information about the Mono-devel-list
mailing list