Accessing DAO from multiple threads

I have implemented a DAO class in a dll that is being used by a console application. Now the console application is multi-threaded and I am getting an exception trying to open the database from multiple threads. I would like to maintain accessing from multiple threads. Is there a way out?
sjohnvAsked:
Who is Participating?
 
PaullkhaConnect With a Mentor Commented:
DAO (most versions) should not be used in multithreaded environments. Please check article ID: Q151407 from MS.
0
 
trestanCommented:
I think you need to use semaphore and wait functions to control the synchronization object.
0
 
mmachieCommented:
there is an article on www.codeguru.com with info on dao and multi threading.  i haven't read it, just seen the entry for it under databases.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.