c:\test>c:\test\1.exe so
Stack overflow.
c:\test>c:\test\1.exe null
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe exnostack
Unhandled exception. _1.ExceptionWithNoStack: <exmsg>
c:\test>c:\test\1.exe exnostackinner
Unhandled exception. _1.ExceptionWithNoStack: <exmsg> ---> System.Exception: <innermsg>
--- End of inner exception stack trace ---
c:\test>c:\test\1.exe oom
Out of memory.
c:\test>c:\test\1.exe soe
Unhandled exception. System.StackOverflowException: <stackoverflowmsg>
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe thread
Unhandled exception. System.AggregateException: One or more errors occurred. (<exceptionfromworker>) ---> System.Exception: <exceptionfromworker>
at _1.Program.<>c.<X>b__1_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.WaitAll(Task[] tasks)
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
---> (Inner Exception #0) System.Exception: <exceptionfromworker>
at _1.Program.<>c.<X>b__1_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---
c:\test>c:\test\1.exe threadsoe
Stack overflow.
c:\test>c:\test\1.exe ff
Process terminated. <reason>
at System.Environment.FailFast(System.String)
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
c:\test>c:\test\1.exe av
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
c:\test>c:\test\1.exe ex
Unhandled exception. System.Exception: <exception msg> ---> System.NullReferenceException: <inner msg>
--- End of inner exception stack trace ---
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe ff2
Process terminated. <reason>
at System.Environment.FailFast(System.String, System.Exception)
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
System.Exception: <exception msg> ---> System.NullReferenceException: <inner msg>
--- End of inner exception stack trace ---
c:\test>c:\test\1.exe con
Process terminated. Invariant failed.
An assembly (probably "1") must be rewritten using the code contracts binary rewriter (CCRewrite) because it is calling Contract.Invariant and the CONTRACTS_FULL symbol is defined. Remove any explicit definitions of the CONTRACTS_FULL symbol from your project and rebuild. CCRewrite can be downloaded from http://go.microsoft.com/fwlink/?LinkID=169180. \r\nAfter the rewriter is installed, it can be enabled in Visual Studio from the project's Properties page on the Code Contracts pane. Ensure that "Perform Runtime Contract Checking" is enabled, which will define CONTRACTS_FULL.
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe af
Process terminated. Assertion failed.
<assertion msg>
<assertion detail>
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe af2
Process terminated. Assertion failed.
at _1.Program.X(String arg)
at _1.Program.Main(String[] args)
c:\test>c:\test\1.exe teiso
Stack overflow.