Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: MemLeak in Perl from C Calls

by SilverB1rd (Scribe)
on Apr 24, 2001 at 17:58 UTC ( [id://75048]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: MemLeak in Perl from C Calls
in thread MemLeak in Perl from C Calls

Just a stab in the dark but why not fork a child to do you loop? After you are down with the loop the child ends and should not the memory be reclaimed?

------
The Price of Freedom is Eternal Vigilance
  • Comment on Re: Re: Re: MemLeak in Perl from C Calls

Replies are listed 'Best First'.
Re: ... MemLeak in Perl from C Calls
by stefan k (Curate) on Apr 24, 2001 at 19:39 UTC
    Good point ...
    BUT only for this cooked down example. We actually need to get data from that perl call back into the main program. That is database access via DBI, reading (and parsing ;-) of text-files, evaluating perl code that gets some configuration etc....

    Regards Stefan K

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found