Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Storable dumping core

by RichardK (Parson)
on May 01, 2015 at 16:31 UTC ( [id://1125373]=note: print w/replies, xml ) Need Help??


in reply to Storable dumping core

Are you sure that your DESTROY method is getting called when you expect?

See perlobj for details, but it has this to say -- which may be relevant to your issue.

The order in which objects are destroyed during the global destruction + before the program exits is unpredictable. This means that any objec +ts contained by your object may already have been destroyed. You shou +ld check that a contained object is defined before calling a method o +n it.

I've never had much luck trying to use perl destructors, they seem to be far too unpredictable but YMMV ;)

Replies are listed 'Best First'.
Re^2: Storable dumping core
by Random_Walk (Prior) on May 05, 2015 at 09:10 UTC

    You hit the nail on the head. I took my saving out of the DESTROY and into a separate saveMem sub, and it has been running fine all weekend.

    Many thanks for your help,
    R.

    Pereant, qui ante nos nostra dixerunt!

Log In?
Username:
Password:

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

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

    No recent polls found