您无法捕捉堆栈溢出异常,因为异常处理代码可能需要堆栈。
You cannot catch stack overflow exceptions, because the exception-handling code may require the stack.
分割批量更新调用,以保持生成的XML足够小,不会出现内存溢出异常。
Split up batch update calls to keep the generated XML small enough to not run into out of memory exceptions.
关于为什么会发生内存溢出异常的更多深入的讨论,可以参看我先前的帖子。
For a more indepth discussion on why you get Out of Memory exceptions see my earlier post.
应用推荐