Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: sub DESTROY: Strange ordering of object destruction

by Corion (Patriarch)
on Mar 03, 2011 at 11:57 UTC ( [id://891210]=note: print w/replies, xml ) Need Help??


in reply to Re^2: sub DESTROY: Strange ordering of object destruction
in thread sub DESTROY: Strange ordering of object destruction (SOLVED)

Maybe the object itself keeps itself alive? Maybe it has child objects that keep the parent alive too?

My guess is that your object SomeClass will never get released until global destruction.

My advice is to rip out code from SomeClass until it starts getting released at the appropriate time, and then slowly putting the code (and the SomeClass-internal calls to the code) back in until the leak reappears.

Replies are listed 'Best First'.
Re^4: sub DESTROY: Strange ordering of object destruction
by Anonymous Monk on Mar 03, 2011 at 12:07 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-24 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found