fork download
  1. using System;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. try {
  6. throw new AccessViolationException ();
  7. } catch (AccessViolationException ex){
  8. Console.WriteLine(ex);
  9. }
  10. }
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/87908/101
Success #stdin #stdout 0.02s 16912KB
stdin
Standard input is empty
stdout
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
  at Program.Main () [0x00000] in <abd12568edec4aad98f503975c4ac6b8>:0