Sinisa Milivojevic wrote:

>
> Hi!
>
> I made an error in my previous message. All three instances should be
> like this:
>
> connX = mysql_init(NULL);
> if (!mysql_real_connect(connX, ip2, user2, pass2, db2, 0, NULL, 0))
> .... error .....
>

By the way it seems to me that in 3.23.XX series mysql_init() returns address not
of the starting point of the allocated memory pool but a point somewhere further
(like to provide hidden data not included in "official" MYSQL structure). Hence
when trying to use static MYSQL structure you can get #GP exception or some data
loss as real connect is trying to write somewhere beneath the starting point. This
trick is used for objects initializing in C++ runtime etc.

I just wonder if tis so or that's all from my sick imagination? :0)

Alexander Komratov


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to