GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Nov-2005, 05:27
Janakiraman Janakiraman is offline
Junior Member
 
Join Date: Apr 2005
Location: Chennai - India
Posts: 47
Janakiraman is on a distinguished road

Problem in Creating a .mdb file <assertion in ~_AFX_DAO_STATE()>


Hi all,

I'm creating a database file (.mdb) using CDAODatbase class... but it fails..
The error im getting is Debug assertion failed and pointing to daocore.cpp and in line no. 45.

Code written to Create .mdb file:
CPP / C++ / C Code:
strDbName= "c:\\Sample.mdb";
CDaoDatabase ArchiveDB;
ArchiveDB.Create(strDbName);

Can anyone help me regarding how can i rectify this error.

Best Regards,
Janakiraman
Last edited by LuciWiz : 11-Nov-2005 at 05:31. Reason: Please use [/c++] as the closing tag, not [\c++] :)
  #2  
Old 12-Nov-2005, 13:03
aie0 aie0 is offline
Member
 
Join Date: Dec 2004
Posts: 246
aie0 is a jewel in the roughaie0 is a jewel in the rough

Re: Problem in Creating a .mdb file <assertion in ~_AFX_DAO_STATE()>


These lines don't give the error, its the thing you did before them cause it.
Look which one of these ASSERTs popped and act accordingly.

CPP / C++ / C Code:
_AFX_DAO_STATE::~_AFX_DAO_STATE()
{
	// these ASSERTs can trip when:
	// ... there any outstanding workspsace objects
	ASSERT(m_mapWorkspaces.IsEmpty());

	// ... you've not shut down with a call AfxDaoTerm()
	ASSERT(m_pDAODBEngine == NULL);

	// ... OLE wasn't correctly shut down
	ASSERT(!m_bOleInitialized);
}

 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 08:44
CGI write to file problem DReaMer66 Apache Web Server Forum 1 16-Mar-2005 20:23
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 11:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 12:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:38.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.