MySQL Forums
Forum List  »  Connector/C++

Re: connect() method crashes 1.0.4-beta
Posted by: Lawrin Novitsky
Date: April 15, 2009 05:55AM

Hi,

Well, yes. Binaries we distribute are built with vs2005.

Some(if not most) of crashes described here I still believe were caused by debug/release code mixing (like crash in connect method). But we verified, that many c/c++ methods crash in application built with vs2008. Usually those are methods, that return std::string, and that made me think that mixing debug/release code is main reason of problems people report here. Because other things work fine for all of us - basic application like get driver, connect, set schema to use, create statement, execute one, fetch result, get fields data(including getString(), which also returns std::string!), and deleting in client of all objects created in the library - those all work fine for us.

But as I said before - I found few methods, that crash application. Actually those I found are not among most needed/used methods. What I can think of now - that is because application and dll use different crt libs. Application uses 9.0, and dll uses 8.0. I only puzzled with getString - why does it work.

Now about remedies.

1). Build you own driver from sources. That's not very hard to do. We plan to distribute also binaries built w/ vs2008 in one of following releases.
2). You may use static lib. Using of it probably may also have some constraints, but in many cases can help.
3). You may try a trick with your project manifest to make it use the same crt with dll

Sorry for inconvenience. We are working on making everything better.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: connect() method crashes 1.0.4-beta
2975
April 15, 2009 05:55AM


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.