In order to conserve run-time resources, you can share a repository instance with the Repository Add-in for Visual Basic. The Repository Add-in includes a method, GetRepository, that returns an interface pointer to the repository instance it uses.
Managing Transactions with a Shared Repository Instance
Sharing Run-time Objects with a Shared Repository Instance