Esteemed Monks,

I am about ready to do something desperate! Thelast few days I have been adding major requested features to a Win32 app - which is now using Class::DBI. I have use C::DBI quite successfully on some web projects and so I blithely went ahead and wrote it this way.

To localise the problem I have cut the code into little bits and put it back together to the point where it stops working. And when I mean stops - PerlApp exits unceremoniously.

package InContact::cDBI; use strict; use Data::Dumper; use Class::DBI; use Class::DBI::mysql; use base 'Class::DBI::mysql'; InContact::cDBI->set_db('Main', 'dbi:mysql:incontact', 'root', ''); package InContact::cDBI::contactdetail; use base 'InContact::cDBI'; #__PACKAGE__->set_up_table('contactdetail'); #__PACKAGE__->has_a('contact_id' => 'InContact::cDBI::contact'); package InContact::cDBI::contact; use base 'InContact::cDBI'; # #__PACKAGE__->set_up_table('contact'); #__PACKAGE__->has_many('contact_detail' => 'InContact::cDBI::contactde +tail', 'contact_id'); # 1;
If I un-comment any of the commented lines then PerlApp will crash with the following error reported on the command line:
Free to wrong pool 88b278 not c0104 during global destruction. 'start4_01.pl' had compilation errors.

To me this smells of a threading issue, but I am not knowledgable enough to be able to go any further. Any clues? I have tried PDK5.3.0 and 5.2.0, ActivceState Perl 5.8.4 and 5.8.3.

jdtoronto


In reply to PerlApp and Class::DBI don't mix! or do they? by jdtoronto

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.