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 : Re: V2.0.1 &VS2003/2005 qry=new Query(con) =>conn insi: msg#00068

db.mysql.c++

Subject: Re : Re: V2.0.1 &VS2003/2005 qry=new Query(con) =>conn inside queryout ...

In fact, just after
qry = new Query(con);

qry does not contains the same address in conn_ than con object
it could be then normal that :
making a select returns me "connection has gone away"
deleting qry object crashes cause of that bad pointer

i'll try tonight to have a look at the sources near Query(mysqlpp::Conn...)

I can confirm that simple1 is working properly as Connection & query are
declared non-pointer in the same function under VS 2005

NP.



> ---------- Message d'origine -----------
> Expéditeur : Warren Young <mysqlpp@xxxxxxxxxxx>
> A : MySQL++ Mailing List <plusplus@xxxxxxxxxxxxxxx>
> CC :
> Date : Thu, 18 Aug 2005 10:00:23 -0600
> Objet : Re: V2.0.1 & VS2003/2005 qry=new Query(con) => conn inside queryout
> ...
> np@xxxxxx wrote:
> > Qry object does not contain a correct conn_ pointer.
>
> That's not very helpful. What makes you think it is not valid? Is it
> valid right after you create the Query object? At what point does it
> become invalid?
>
> > PS : i'm not able to run 'makemake vc',
>
> Sorry, make.bat was accidentally left out of the distribution. I've
> attached the current version.
>
> I am sending this to the mailing list. Please do not email me directly.
> This sort of thing belongs on the mailing list, where others can
> benefit from this exchange.
>
> > Code :
> >
> > try {
> > con = new Connection(use_exceptions);
> > con->connect(DB_NAME,DB_HOST,DB_USER_NAME,DB_PASSWORD);
> > if(con!=NULL) {
> > qry = new Query(con);
> > a "standalone" usable class
> > }
> > if(con == NULL || con->connected()==false) {
> > Log::AddLog("ERROR Connection failed to MYSQL Server");
> > return false;
> > }
> > }
> > catch (BadQuery er ) {
> > Log::AddLog("ERROR while connecting to MYSQL Server" +
> > String(er.what()));
> > return false;
> > }
> > return true;
>
> That looks perfectly reasonable to me. What part of it fails?
>
>
> Liste des noms de fichiers de corps

Nicolas PERRIN


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