Procedure TWPRTFEngineBasis.SetEnvironment(Environment:TWPToolsBasicEnviroment)Unit: WPRTEDefsClass: WPRTEDefs.TWPRTFEngineBasisParameters Environment:TWPToolsBasicEnviroment Description Use this method in threads to assign an instance of the class . This avoids that any resouce handle is blocked by the GlobalWPToolsCustomEnviroment.