Home > Software engineering >  Oracle C connections, the createConnection throw exceptions, not catch
Oracle C connections, the createConnection throw exceptions, not catch

Time:10-25

 conn=env - & gt; The createConnection (username, password, connstring); 

I in the debug version, no problem, create success, query is no problem, but the release version, has collapsed, use Oracle. H file and. Lib file, the debug version and release version set is the same,
Try catch (... Won't catch), use the SQLException cannot catch more,

 MFCTest. Exe of 0 x614e0804 in untreated exception: 0 xc0000005: access conflict while reading position 0 xffffe000 

CodePudding user response:

This is a pointer exception, you look at the code in the object pointer to pointer is not valid

CodePudding user response:

reference 1st floor oyljerry response:
this is a pointer exception, you look at the code in object pointer is not valid pointer

If because object is not new or something, that the debug version also going to have a problem

CodePudding user response:

reference 1st floor oyljerry response:
this is a pointer exception, you look at the code in object pointer is not valid pointer

On study, I should be associated with VS version and Oracle version does not match, I have a MSVC the Oracle version lib directory folder, there are VC8 and VC9, but I am 2010, need VC10, I forced with VC9 library, will lead to the abnormal,
I searched on the Internet, you can download the support VC10 library, the
http://www.oracle.com/technetwork/database/occidownloads-083553.html
Download support VC10, but support VC10 Oracle version 11.2.0.2.0 again, and I am 11.2.0.1.0 Oracle, I also would not make this upgrade Oracle, client computers are also 11.2.0.1.0, I also can't because my VS downgrade version, is this no problem?
  • Related