Can I access a vault from several applications at once?



Assuming all of the applications utilize the CBVault component, the same vault can be open in multiple applications simultaneously, but only if each one has opened it in read-only mode(which is controlled by the ReadOnly property). Such an application cannot open a vault in read-write mode if another application has it open in read-only or read-write mode; nor can it open it in read-only mode if another application has it open in read-write mode. This behavior is by design.

To get around these restrictions, you can use the CBDrive component instead. When a vault is opened with the CBDrive component, it is actually the kernel-mode driver that opens the vault. So multiple CBDrive-based applications can open the same vault (in either mode) simultaneously since the driver coordinates all reads and writes.

Alternatively, here are a couple more solutions:

  • Mount the vault as a drive using the CBDrive component, and have the other applications access the vault's contents directly via the drive.
  • Create a server process that opens the vault and then services requests from client applications.

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@callbacktechnologies.com.