Help, ODBCRR32.DLL 0xC000005 Access Violation 
Author Message
 Help, ODBCRR32.DLL 0xC000005 Access Violation


I have some problem stabilizing my MFC Application who is using ODBC .
When closing the database pointer and the recordset I get the the error:

MFC Unhandled exeption ODBCRR32.DLL 0xC000005 Access Violation

Is there anybody who can give me a solution on this problem???

My applicationg using MFC 4.2 and is developed in VC++ 5.0. The database
is Microsoft access(mdb) and the ODBC driver is Microsoft Access Driver
3.50.360200 ODBJT32.DLL(2.12.96)

When I debugg the application after this error I get this assembler

04A96271   cmp         dword ptr [eax+14h],ebp // (Here is the error)
04A96274   je          04A96282
04A96276   mov         eax,dword ptr [edi+4]
04A96279   push        eax
04A9627A   call        04AA6A2B
04A9627F   add         esp,4
04A96282   inc         bx
04A96284   xor         eax,eax
04A96286   mov         ax,word ptr [esi+40h]
04A9628A   add         eax,18h

This is how I am opening and closing the access database
//******* Opening database and recordset**********
// Opening database pointer
CDatabase* m_pDBMain;
 m_pDBMain  = new CDatabase;
 m_pDBMain->OpenEx(theApp.m_sOpenDbStr,CDatabase::useCursorLib |

// Opening the recordset
CMainRecord* m_pMain;   // CMainRecord is derived from CRecordset
 m_pMain = new CMainAreaRecord(m_pDBMain);

//******* Closing database and recordset**********

// Closing and deleting the recordset
  delete m_pMain;

// Closing and deleting the databasepointer
  if( m_pDBMain->IsOpen())
  delete m_pDBMain;

Knut Nilsen

Sat, 09 Dec 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. HELP: Spurious ODBCCR32.DLL access violation !!!!!!!!!

2. HELP! Access violation in OLEAUT32.DLL

3. HELP!ODBC API call SQLFetchScroll returns Access violation with ODBCCR32.dll

4. Help! - msdev causes access violation in devshl.dll

5. PostMessage from DLL causes access violations, help please

6. Help: Crash when loading MFC 4.2 dll's in VC6 app (Access violation)

7. SHELL32.DLL Access Violation, Help!

8. "Access violation" accessing a DLL

9. VB Access Violation from C DLL

10. MSJet35.DLL Access Violation

11. Access violation in module 'MSVCRTD.dll'

12. Unhandled exception in... (ODBCCR32.DLL): 0x0000005: access violation


Powered by phpBB® Forum Software