Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Object Destructors and Signals

by jeffa (Chancellor)
on Nov 04, 2010 at 22:39 UTC ( #869581=note: print w/ replies, xml ) Need Help??


in reply to Object Destructors and Signals

"Sometimes the database handle gets destroyed before my object's destructor is called and I get a cascade of errors."

Why is that happening? I would look into why other "things" are allowed to destroy the database handle and restrict them from doing so. Perhaps you would benefit by giving the object it's own database handle as an attribute?

Finally, perhaps DBIx::Connector would be of use to you ... check it out. Hope this helps. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)


Comment on Re: Object Destructors and Signals
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-07-26 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls