Warren Young wrote:
> Drew Vogel wrote:
>> I am using the State Threads library, but the library never actually
>> creates a new thread
>
> Are you rebuilding MySQL++ with thread support, and linking your code
> to the thread-safe version of the MySQL C API library? Are you
> observing the thread safety requirements spelled out in the MySQL C
> API documentation?
State Threads aren't preemptible. All mysql queries (at least at this
point) are done before the state threads library is even initalized.
>> Any ideas how closing or not closing the Connection object (well
>> after the conversion is made) could have any effect on the conversion?
>
> Connection objects are designed to last the lifetime of the program,
> if necessary. You do not have to close it in order to get good data.
> I think all you have done is perturbed your bug into hiding from you;
> it's still there, waiting to bite you again.
Right, I'm closing the Connection object right before main() returns --
well after the conversion is made -- which is which it is so hard for me
to believe that this is what fixed it.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.