MySQL Forums
Forum List  »  Connector/C++

Re: Connector 1.1.19 cpp getstring error Libary generation
Posted by: Luis Silva
Date: February 03, 2020 04:29AM

Jean,

That's a known issue... if mixing different runtimes, it will crash!

That's why, getting c_str() instead of string object works, since the string object is freed on the right dll!

Better is trying to use 1 runtime library only! If not possible, IMO, best way is to not use complex objects when passing data from one library to another.

From our side, there's little we can do on this regard.

Luís

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Connector 1.1.19 cpp getstring error Libary generation
495
February 03, 2020 04:29AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.