Re: [fpc-pascal] DB Access and Multithread

2015-02-02 Thread JB
I work with connection pool, a threaded control to provide avail connections. Best regards, JB José Benedito JBS Soluções Consulting Systems Development c ont...@jbsolucoes.net www.jbsolucoes.net skype: s...@jbsolucoes.net +55 22 30251654 +55 22 996064279 On Mon, Feb 2, 2015 at 6:05 AM, Micha

Re: [fpc-pascal] DB Access and Multithread

2015-02-02 Thread Michael Schnell
On 01/30/2015 10:56 PM, Fabrício Srdic wrote: Hello, The DB access framework of the fpc is not thread safe. IMHO you should never use the therm thread save in such a generalization. You need do be a lot more specific. I never took a look at "The DB access framework of the fpc", so I can't

Re: [fpc-pascal] DB Access and Multithread

2015-01-30 Thread Michael Van Canneyt
On Fri, 30 Jan 2015, Fabrício Srdic wrote: Hello, The DB access framework of the fpc is not thread safe. So, how can i build a multithreaded application that requires access to database? Create 1 connection per thread. Do not share connections (and datasets connected to it) over threads.

[fpc-pascal] DB Access and Multithread

2015-01-30 Thread Fabrício Srdic
Hello, The DB access framework of the fpc is not thread safe. So, how can i build a multithreaded application that requires access to database? If each one of my threads use its own set of DB access components, that is, don´t share any instance of db access components, this can be a secure worka