1 Reply Latest reply: Apr 22, 2012 5:24 PM by user594948 RSS

    An Oracle OCCI program compiled in Win 7 x86 VC++10 crashes in a Win XP Sp3

    user594948
      Hi:
      I generated a VC++ program in my computer under Win 7 32bits linked to Oracle Instant Client OCCI 11.2.0.3 library. It works very well in my machine when selecting data from a database but, when I copy this executable together with oraocci11.dll (10.2.0.3 for VC10), oci.dll and tnsnames.ora to a client machine, which does not have VC++ but it has the VC10 distributable installed, it crashes with:
      Faulting application consoracle.exe, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x003b003a.

      in the 2nd line:
      env = Environment::createEnvironment (Environment::DEFAULT);
      conn = env->createConnection (user, passwd, db);

      (env has invalid reference)

      I spent many hours trying to solve this problem without success. The environment variables: path, ORACLE_HOME are appropiately configured.
      What do you thing is happening?

      Edited by: user594948 on 22-04-2012 05:58 AM