Weird Error

by Martin Defecheon 2009-05-02T12:07:32+00:00
Hello,
I have been using MySQL since months but I never had this error :
http://pastebin.com/f29be6e44
My functions where it happened (it's a function called by a thread) :
http://pastebin.com/f788ed68
It comes from this part :
port = result[numRow][1];
v6 = static_cast(result[numRow][2]);
session = static_cast(result[numRow][3]);
result[numRow][0].to_string(address);

Re: Weird Error

by Warren Youngon 2009-05-02T12:39:43+00:00.
On May 2, 2009, at 6:04 AM, Martin Defeche wrote:
> I have been using MySQL since months but I never had this error :
> http://pastebin.com/f29be6e44
That shows a double memory free, certainly a bug, but it doesn't show
libmysql++*.so in the call stack, so I don't see why you're blaming
MySQL++.
> it's a function called by a thread
Have you followed all of the advice in the chapter on threads in the
user manual? If not, it's quite possible to make MySQL++ or MySQL
corrupt memory through double frees or other mechanisms.
> port = result[numRow][1];
> v6 = static_cast(result[numRow][2]);
These casts really shouldn't be needed. I doubt it's the source of
your current problem, but it does suggest that you're mixing types
where you shouldn't.
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsub=bull@pubbs.net

Related Lists