Solved

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

Posted on 2004-04-06
2
563 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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

10 Experts available now in Live!

Get 1:1 Help Now