Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Object Destructors and Signals

by jeffa (Bishop)
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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://869581]
help
Chatterbox?
[holli]: so i filed a pull request for a open source project on github, they guy asks me "what motivates me to do this"
[holli]: i am tempted to answer "to please our new asian overlords" or something
[holli]: what a silly question

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-10-18 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (251 votes). Check out past polls.

    Notices?