dbTalk Databases Forums  

Access violation exception in visual studio

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Access violation exception in visual studio in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sotiris Chatzis
 
Posts: n/a

Default Access violation exception in visual studio - 07-11-2005 , 06:46 AM






------=_Part_2564_26362986.1121082362333
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have made a programm using the mysql++ API for the visual studio 7. The=
=20
code is:

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

query<<"select * from vsr";

log << "query=3D " << query.preview() << endl;=20


Result res =3D query.store();

Row row;
Result::iterator i;
for (i =3D res.begin(); i !=3D res.end(); ++i) {
row =3D *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=20
violation reading location 0x8054a938

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

------=_Part_2564_26362986.1121082362333--

Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Access violation exception in visual studio - 07-11-2005 , 07:18 AM






Sotiris Chatzis wrote:
Quote:
I have made a programm using the mysql++ API for the visual studio 7.
7.0 or 7.1? And which version of MySQL++?

Quote:
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
Does this happen with the stock examples? simple1, custom2, and custom3
all use Row::lookup_by_name().

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.