Well, I must use some kind of thread here, but using that I get this warning - "mysqlPP has no driver CLONE() function so is unsafe threaded". Now, this aint good, and the application crasches. I also get this just before it crashes:

thread failed to start: DBD::mysqlPP::dr connect failed: handle 1 is owned by thread 27448c not current thread 44e153c (handles can't be shared between threads and your driver may need a CLONE method added) at C:\Perl\site\lib/DBI.pm line 596.

Ideas how to solve this? Apparently, the DBD::mysql works fine, but as I understand it DBD::mysqlPP is better?

Update: Wierd, seems it works with DBD::mysqlPP too! Hmm... Seems like some collition with "require" other scripts... and creating new db objects...

Thanks, Ace

In reply to mysqlPP has no driver CLONE() function so is unsafe threaded by Ace128

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.