Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^8: Hard to Debug windows memory error

by jandrew (Chaplain)
on Jan 04, 2016 at 17:28 UTC ( [id://1151850]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Hard to Debug windows memory error
in thread Hard to Debug windows memory error

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1151850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found