4 Replies Latest reply on Nov 11, 2003 7:09 AM by 408716

    Access Violation when program is terminated.

    367026
      I created Sample SDI Program.
      And I inserted code such as the following:

      BOOL COraClassTestApp::InitInstance()
      {
      oboolean b = OStartup();
      OSession session;
      oresult res1 = session.Open(0);
      oresult res2 = session.Close();
      OShutdown();

      AfxEnableControlContainer();
      ....
      }

      When the above program was terminated, I got the following access violaton :

      First-chance exception in OraClassTest.exe (COMSVCS.DLL): 0xC0000005: Access Violation.
      First-chance exception in OraClassTest.exe (ORAMTS.DLL): 0xC0000005: Access Violation.

      How I can solve this problem?

      I am using Oracle 8.1.5 client and windows XP Profession.