例如,使用者可在另一个执行绪重新计算试算表其他部分时,在同一应用程序内编辑试算表。
For example, a user can edit a spreadsheet while another thread is recalculating other parts of the spreadsheet within the same application.
因此,如果开发人员使用 CER 的共用执行个体化,将不会拦截 JIT 编译错误、泛型型别载入错误,或是预期的 CER 之区域内的执行绪中止。
So if the developer uses a shared instantiation of the CER, then JIT-compilation errors, generics type loading errors, or thread aborts within the region of the intended CER are not caught.
若要避免遗漏控制代码资源,请务必在限制的执行区域(CER)内呼叫这个方法,因为在该区域中执行绪中止无法插断处理。
To avoid leaking handle resources, always call this method inside a constrained execution region (CER), where a thread abort cannot interrupt processing.
应用推荐