0 Replies Latest reply on Aug 17, 2006 3:47 PM by 107478

    OO4O / OIP catch exception

    107478
      Hi all,

      I develop an application and use VC++ 6 and the COM OIP Interface. My problem is, how can I catch an exception before I get the error “KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception” like as OO4O ?
      This is a short part of code as an example.

      if (CLSIDFromProgID(OLESTR("OracleInProcServer.XOraSession"), &clsid) != NOERROR)
      return FALSE;
      TRY
      {
      OraSession oSession;
      OraDatabase oDatabase
      if (!oSession.CreateDispatch(clsid, &e))
      return FALSE;
      oDatabase = oSession.GetOpenDatabase(dbname,cAccount,options);
      return TRUE;
      }
      CATCH_ALL(e)
      {
      HandleError(e);
      }
      END_CATCH_ALL

      When I use the right account information, all is well. When I use bad account information I get an exception and can catch and handle this, but first I get the kernel message.
      When I use the library from oo4o and do the same, I can catch the exception without the kernel message.
      What is wrong or what is missing?
      Thanks for your Help