Solved

Too many client tasks - What does this DAO error indicate?

Posted on 2004-04-06
2
594 Views
Last Modified: 2013-11-20
Hi there!

I've been writing a database app using MFC (Visual C++ 6.0). It accesses its Microsoft Access database by means of ODBC. I keep on getting the following error: "Too many client tasks. (Error 3053)". This normally happens after I've added about 40 or so new records to the database. What does this indicate?

MSDN explains the error as follows:
You have too many copies of applications running at the same time. Close one or more instances.

That's not much help to me though.

I'm using the class CRecordset and adding records using the AddNew and Update member functions, if that helps.

Hopefully someone had a similar struggle, I hope you can help me out.

Thanx.
Josamoto
0
Comment
Question by:josamoto
2 Comments
 
LVL 16

Expert Comment

by:nonubik
ID: 10764851
It seems that you have too many databases opend in the same time. Try to close the database after each opening (for adding a record)
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 125 total points
ID: 10766103
while opening the CRecordset which one of the following you are specifying
-snapshot
-dynaset
-dynamic
I would suggest you to specify the CRecordset::dynaset
Also check if you are closing the CRecordset after each use like
// Example for CRecordset::Close

// Construct a snapshot object
CCustSet rsCustSet( NULL );

if( !rsCustSet.Open( ) )
   return FALSE;

// Use the snapshot ...

// Close the snapshot
rsCustSet.Close( );

-Lakshman
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

680 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