Always connect the Creo with VB application while accessing Creo content and disconnect it while not required. If creo session is not running while executing the VB API application, it may throws errors. Hence the user need to ensure the Creo session status before execute their core logic.
VB API Function
Thanks & Regards