Multi-threaded environment
Multi-threaded environment
Hi is anyone using PgDAC in a multi-threaded environment? I'm trying this in a project but am receiving intermittent errors especially when initiating transactions.
Re: Multi-threaded environment
Yes, it works great, you have to use a connection per thread as Plash has stated. You might get it to work by using windows messages or some other means (critical sections etc) but one connection per thread works the best.yozey wrote:Hi is anyone using PgDAC in a multi-threaded environment? I'm trying this in a project but am receiving intermittent errors especially when initiating transactions.
A queue or stack might work for you also depending on your needs.