Solved

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

Posted on 2004-04-06
2
570 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 62
viewing source code from eclipse 13 89
Doc'in system (example?) BA 7 89
zeroMAx challenge 20 88
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now