Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Windows, Visual Studio 10
Description
When multiple MySQL objects are created in the same thread, and mysql_thread_end is called when destroying each object, it crashes.
This does not happen with the MySQL client library.
Have attached sample code.
Just a remark - it is not the correct way to use mysq_thread_end(). It should not be called once per "object" (whatever it is), but once per OS thread, if you do not plan to to make mysql calls anymore in this thread.