c++ - Oracle exception ::getMessage() causing debug assertion -


i'm using visual studio 2015 enterprise oracle 12.1.0. here's code causing assertion:

try {     // .. }catch(oracle::occi::sqlexception &e) {     std::cout << "error code: " << e.geterrorcode() << std::endl;     std::cout << "error message: " << e.getmessage() << std::endl;   // here  } 

i'm assuming has std::string being allocated dll , deallocated application i'm not sure. got no idea on how fix it.

edit 1: "catch value" "catch reference"

edit 2: visual studio 2013(v120) platform toolset don't assertion. visual studio 2015(v140) platform toolset though code, library , project settings same.


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -