List:MySQL++« Previous MessageNext Message »
From:Sotiris Chatzis Date:July 11 2005 11:46am
Subject:Access violation exception in visual studio
View as plain text  
I have made a programm using the mysql++ API for the visual studio 7. The 
code is:

try
{
Query query = con->query();
ostringstream strbuf;

query<<"select * from vsr";

log << "query= " << query.preview() << endl; 


Result res = query.store();

Row row;
Result::iterator i;
for (i = res.begin(); i != res.end(); ++i) {
row = *i;
cout << row.lookup_by_name("vsr_regtime");
}

}
it creates the following error when it reaches the command row.lookup(..):
Unhandled exception at 0x100119a1 in simple1.exe: 0xC0000005: Access 
violation reading location 0x8054a938

Have you any idea where is the problem causing this error?

Thread
Access violation exception in visual studioSotiris Chatzis11 Jul
  • Re: Access violation exception in visual studioWarren Young11 Jul