are ecpg produced programs thread-safe??? 
Author Message
 are ecpg produced programs thread-safe???

I have posted this question some weeks ago, but noone answered. So I
decided to repost.

I am writing in C++. I have created a class that performs various
transactions with a PG database.
The transactions are implemented through embedded SQL using the ecpg
preprocessor.
In my application, I create lots of threads that access the database
through the class I have created. However I have a lot of unexplainable
crashes, that makes me wander if the code ecpg generated is thread safe.

*********Does anybody know if the code generated by ecpg is thread
safe.********************

I have read that the libpq and libpq++ libraries are thread-safe if each
thread has its own connection.
Please NOTE that every instance of my class, creates a new connection to
the database.
By default, every instance of a class has its own memory.

Christos



Mon, 27 Sep 2004 16:41:49 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. Thread safe ecpg

2. Compiling thread safe esqlc programs on aix

3. ECPG, threading and pooling

4. ECPG thread-safety

5. q: SQL Server 7.0, DB-lib, thread safe?

6. WANTED: Thread Safe, No-DLL Database

7. How to Make My MTS COM component Thread-safe on Access DB

8. Is ODBC thread-safe?

9. Is JDBC 2.0 thread-safe?

10. ODBC is Thread safe outside SQLServer?

11. JET ODBC Driver thread-safe????

12. HELP -- odbc thread safe?


 
Powered by phpBB® Forum Software