Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Accessing DAO from multiple threads

Posted on 1998-08-20
3
Medium Priority
?
244 Views
Last Modified: 2013-11-20
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?
0
Comment
Question by:sjohnv
3 Comments
 
LVL 8

Expert Comment

by:trestan
ID: 1321076
I think you need to use semaphore and wait functions to control the synchronization object.
0
 
LVL 2

Accepted Solution

by:
Paullkha earned 50 total points
ID: 1321077
DAO (most versions) should not be used in multithreaded environments. Please check article ID: Q151407 from MS.
0
 

Expert Comment

by:mmachie
ID: 1321078
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question