PTC Arbortext Publishing Engine Programmer's Guide (PTC Arbortext Publishing Engine 程式設計師指南) > The Arbortext Publishing Engine Request Manager > Understanding the Internal Structure of Arbortext PE Request Manager > Arbortext PE 子流程 Pool Management > Arbortext PE 子流程 Deallocation
  
Arbortext PE 子流程 Deallocation
Once it has been allocated to a dynamic component, an Arbortext PE 子流程 can only be used by the code that allocated it. To release the Arbortext PE 子流程, the component that called the allocate method must subsequently call the com.arbortext.e3.E3Subprocess.deallocate method. To ensure the Arbortext PE 子流程 is released, placing thedeallocate call inside the finally block, which releases it regardless of any exceptions that might be thrown in the try block.
Deallocation is not optional. If a dynamic component fails to deallocate an Arbortext PE 子流程, the Arbortext PE 子流程 will never become usable for other purposes.