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

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -