Well, in .NET 4 Microsoft added the HandleProcessCorruptedStateExceptions attribute:
HandleProcessCorruptedStateExceptionsAttribute Class
I want to test this feature. How can I bring my application to a "corrupt state"?
Well, in .NET 4 Microsoft added the HandleProcessCorruptedStateExceptions attribute:
HandleProcessCorruptedStateExceptionsAttribute Class
I want to test this feature. How can I bring my application to a "corrupt state"?
Just dereference a random number:
or overflow the stack:
Test
HandleProcessCorruptedStateExceptions
feature:Screwing up the garbage collected heap is always a good way: