Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: problems using mysql++ > 2.0.0: msg#00066

db.mysql.c++

Subject: Re: problems using mysql++ > 2.0.0

No it is an local var. Here's code for more information

[code]
bool CMySqlConnector::executeSelect ( std::string sql,
mysqlpp::Result
&result, bool log ) //Achtung Mysql++ hat Speicherloch bei Query.store()
in combination mit std::string
{
try
{
Query query = m_clConnection.query();
//Backslashes doublen
replaceSubstring( &sql, "\\", "\\\\" );
//SQL statement an query weitergeben
query << sql.c_str();
//ausführen
result = query.store();
return true;
}
catch (std::exception &er)
{
//skipped
}
return false;
}

[/code]
When running in try block right after leaving with return debug assert
hits in .
I'm using this func in this way :
Result myResult;
executeSelect( "select * from example", myResult, true );


CJNoyesSW@xxxxxxx schrieb:
> Was the query constructed with new? The error is happening because the
> pointer doesn't point to one of VC++'s heaps.
>
> -----Original Message-----
> From: Thomas Werth <thomas.werth@xxxxxxxx>
> To: MySQL++ Mailing List <plusplus@xxxxxxxxxxxxxxx>
> Sent: Thu, 18 Aug 2005 11:11:03 +0200
> Subject: problems using mysql++ > 2.0.0
>
> Hello,
>
>
> I'm using mysql++ for a project in vc2003. Now h'm trying to switch to
> new lib version.
> I managed to compile mysqlpp lib using makefiles.
> When using makefiles i notice 2 things.
>
> First when running "makemake.bat vc" i get an error "make.bat not found".
> When looking into makemake.bat i discovered at end of file a "call
> make.bat" whereas this make.bat isn't created in mysqlpp root dir nor is
> it delivered in basic install. I'm just ignoring this :D
>
> Second this is a harder problem.
> Using mysqlpp as dll in release version of my project seem to run fine.
> Unfortunately in debug it always crashes when a local var ( like Query )
> is destructed. It throws an assertion using internal debug func
> "_CrtIsValidHeapPointer".
>
> When looking a Readme.vc at part "Using MySQL++ in Your Own Projects"
>
> Debug settings are shown this way
>
> <<
> Under Linker::General add to "Additional Library
> Directories": "c:\mysql\lib\debug, c:\mysql++\vc\lib" for
> the Debug configuration. For the Release configuration,
> make it "c:\mysql\lib\opt, c:\mysql++\lib"
>>>
>
> Unfortunately no vc subdir is created.
> I set "INST_DIR=F:\dev\Projekte\cpp\mysql++\vc" in makefile.vc in lib
> dir, but nothing is created neither dir nor any files in there.
>
> What am i doing wrong ? How do i tell makefile to create a debug version
> of lib ?
>
> greets
> Thomas Werth
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: http://lists.mysql.com/plusplus?unsub=CJNoyesSW@xxxxxxx
>

--
MFG
Thomas Werth

Tel.: 02307 / 704 - 366
---------------------------------------------------------------------

Paul Vahle GmbH & Co. KG URL : http://www.vahle.de
Westicker Strasse 52 D-59174 Kamen E-Mail : thomas.werth@xxxxxxxx
---------------------------------------------------------------------


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation