预测所需内存能否成功

需要用到MemoryFailPoint:

using(MemoryFailPoint mfp=new MemoryFailPoint(1500))
{
  //Do using many memory account

catch(InsufficientMemoryException e)
{

  throw e ;

}

posted @ 2013-08-08 10:02  Thyiad  阅读(179)  评论(0编辑  收藏  举报