List:MySQL++« Previous MessageNext Message »
From:Drew Vogel Date:December 12 2005 10:01pm
Subject:Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d
View as plain text  
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.


Thread
BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dDrew Vogel11 Dec
  • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dDrew Vogel11 Dec
  • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dWarren Young12 Dec
    • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dDrew Vogel12 Dec
      • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dWarren Young12 Dec
        • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dDrew Vogel12 Dec
          • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dWarren Young12 Dec
            • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dDrew Vogel12 Dec
          • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dDrew Vogel16 Dec
            • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "dChris Frey19 Dec