NET框架为OutOfMemoryException
当没有足够的内存来创建一个新的对象时?
它由运行时预先分配。
以下是HelloWorld应用程序预先分配的例外情况:
0:003> !dumpheap -stat -type Exception
Statistics:
MT Count TotalSize Class Name
735f2920 1 84 System.ExecutionEngineException
735f28dc 1 84 System.StackOverflowException
735f2898 1 84 System.OutOfMemoryException
735f2744 1 84 System.Exception
735f2964 2 168 System.Threading.ThreadAbortException