kennethk I suspect my problem is exacerbated by my using Moose for my object type. My case would be best represented by two more layers deep from the class 'Phases' where '$my', '$closure', and '$our' were built from other classes and within each of those class instances they had stored instances of each other in variables. Based on a troubleshooting suggestion provided by fishmonger I think I have traced the failing portion to the equivalent phase in your example at

Phases DESTROY main_closure

I now believe the root cause to be the several interlinked attributes i just outlined that are trying to unwind themselves as part of the master class unwind after they have already been cleaned up when they went out of scope before. (At the equivalent 'Phases DESTROY my' and 'Phases DESTROY closure' point in the example.) Unfortunately, an attempt to write a simple case demonstrating my suspicions did not fail. My next steps are to clean up some of the not so pretty architectural decisions I made in an effort to arrive at a lower level of complexity which I hope will either quit failing or yield a cleaner understanding of the problem. Worst case I should be able to submit a simpler question next time.


In reply to Re^8: Hard to Debug windows memory error by jandrew
in thread Hard to Debug windows memory error by jandrew

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.