Beginner issue - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Databases - MySQL, SQL, Oracle, Access and others

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-17-2011, 11:47 PM   #1 (permalink)
Member
 
Join Date: Mar 2011
Posts: 107
Default Beginner issue

Hi all
i've been wasting some hours with my first try. I suppose it will be an easy issue for you.

This is my code, (very simple)

#include <mysql_driver.h>
#include <cppconn/connection.h>

int wmain()
{
sql:river *driver;
sql::Connection *con;

driver = get_driver_instance();
con = driver->connect("tcp://127.0.0.1:3306", "root", "root" );
delete con;

return 0;
}


No problems compiling and this error when it fails and i debug.

Unhandled exception at 0x53ab01dc in pruebaconnmysql.exe: 0xC0000005: Access violation reading location 0x00000000.

Problem is with connect function.


Enviroment (Wndows 7 + Microsoft Visual Studio 2010 Espress)

Thanks for your time and support
bgjyd834 is offline   Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 08:04 AM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting