Thread-safe if ReadOnly?

Discussion of open issues, suggestions and bugs regarding Virtual Data Access Components for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 15
Joined: Fri 17 Nov 2006 04:01

Thread-safe if ReadOnly?

Post by Theprasit » Sat 09 Apr 2016 04:10

Using VT in multi-thread application with Read-Only e.g. configuration file.
I start new thread of each operation and read VT from disk file on this operation.

Is it safe?



Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Thread-safe if ReadOnly?

Post by AlexP » Mon 11 Apr 2016 09:21


You can't load data simultaneously in different threads from a file to a single instance of VirtualTable, since data in VT are cleared before loading - and concurrent data loading will cause errors.

Post Reply