I understand that starting from .net2.0 StackOverflowException is no longer catch-able. But people mentioned the exception to the rule when CLR is hosted, in which case it's possible to handle and recover from such exception.
This makes sense because I'm hosting CLR to execute managed code / script in a native service, and I don't want sloppy script code to terminate my service. Instead I would like to be able to recover from such event and blacklist the misbehaving script code from that point on.
But I didn't find much elaborate information regarding how to do so.
Notes: [1] I'm using C++/CLI mixed-assembly as a bridging dll to connect my native service to dotnet, instead of "explicitly hosting CLR" using its COM interfaces.