MySQL Forums
Forum List  »  Connector/C++

What is the difference static MFC and shared MFC
Posted by: Myeongho AN
Date: December 26, 2008 09:56PM

I wrote simple code for test with Connector/C++ on Visual C++ 2005.

When I compile with shared MFC, the simple code has no problem.
but when I compile with static MFC, some error occured when access ResultSet.

HEAP[MySQLConn.exe]: Invalid Address specified to RtlValidateHeap( 00F10000, 009C65A8 )


std::auto_ptr<sql::ResultSet> pDBs( pStmt->executeQuery( "SHOW DATABASES" ) );
while ( pDBs->next() )
{
std::string strDBName = pDBs->getString( "database" );
}

Options: ReplyQuote


Subject
Views
Written By
Posted
What is the difference static MFC and shared MFC
4152
December 26, 2008 09:56PM


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.