Hi David,
> Can you contact the author/vendor and have them fix the problem? That is the
> easiest and best way to fix the problem.
Certainly, but since we already have a version out and we need to be
backward compatible, this is sadly not an option.
> There are some extreme measures you could use but they are non-trivial. You
> could host the runtime yourself and set your own policy.
Yes, this seems from all I can tell the only viable if nontrivial
alternative. Do you have a good reference for this?
> You could
> diassemble the offending library using ILDASM, fix the bug yourself in IL,
> and then reassemble it using ILASM.
This would work only for the one known offender, but is not a general
solution, so sadly not an option either.
> There are other measures but I don't
> recommend it for production code (e.g. use the profiling API to watch
> for/deal with exceptions before the runtime escalates it to a UE, or even
> dynamically rewrite the code on the fly).
Haven't thought of these but then I'd rather do the hosting. ;-)
> These are probably not worth the effort - the legacy workaround is easier
> and less error prone.
Yes, that's probably the way we go for the moment, even though it is not
really satisfactory.
Thanks a lot,
Stefan
David Levine - 26 Oct 2006 02:12 GMT
> Hi David,
>
[quoted text clipped - 11 lines]
> Yes, this seems from all I can tell the only viable if nontrivial
> alternative. Do you have a good reference for this?
There's a book written by Steven Pratschner.called Customizing the .NET
Runtime,
http://www.amazon.com/Customizing-Microsoft-Framework-Pro-Developer-Paperback/dp
/0735619883
Great book, gets into all the low-level APIs used to take control over the
runtime.
He also authored this article:
http://msdn.microsoft.com/msdnmag/issues/01/03/clr/
I found this link but I have not evaluated it....
http://www.codeproject.com/dotnet/simpleclrhost.asp
Stefan Kühnel - 31 Oct 2006 11:46 GMT
Hi David,
> >> There are some extreme measures you could use but they are non-trivial.
> >> You
[quoted text clipped - 14 lines]
> I found this link but I have not evaluated it....
> http://www.codeproject.com/dotnet/simpleclrhost.asp
Thanks a lot for those references. Will look into those for a future
release.
Stefan