Re: NUnit-gui crashes on stack overflow

"Andy Johnstone" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
Ahh... I missed the hosted part.  

Thanks
Andy

-----Original Message-----
From: Charlie Poole [mailto:[email protected]] 
Sent: Friday, January 11, 2008 4:12 PM
To: 'Andy Johnstone'; [email protected]
Subject: RE: [Nunit-users] NUnit-gui crashes on stack overflow

Hi Andy, 

> I was running a test in NUnit-gui 2.4.1, and Nunit crashed with a 
> StackOverflowException.  Now, it was my test that caused the 
> exception, but I don't think NUnit should crash.
> Would it be possible for NUnit to unload the AppDomain in this case?  
> 
> >From the StackOverflowException help:  "Note that an
> application that
> >hosts
> the common language runtime (CLR) can specify that the CLR unload the 
> application domain where the stack overflow exception occurs and let 
> the corresponding process continue.
> For more information, see ICLRPolicyManager Interface and Hosting the 
> Common Language Runtime."
> 
> So it seems like this should be possible.  I know I'm not using the 
> latest, but I didn't see anything in the change logs indicating this 
> has changed.

AFAIK, this is not possible without hosting the CLR, which is an entirely
new architecture. If someone knows of a secret setting we can use to get
.NET loader to work that way, I'd be glad to give it a try.

Oddly enough, we can intercept stack overflow in .NET 1.1.

Charlie






-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.