octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] is memory leak of figure


From: Daniel J Sebald
Subject: Re: [OctDev] is memory leak of figure
Date: Wed, 30 Mar 2011 22:32:43 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9

On 03/30/2011 09:57 PM, Ben Abbott wrote:

Should I propose a new feature for gnuplot that will cause an exit if an 
interactive window is closed?

I don't think that is a good idea.

(1) There is no synchronous communication between gnuplot and octave, and(2) 
Gnuplot can't tell us when its windows are closed.

It may be possible to request the x11 window id from gnuplot, but that will not 
help with other terminal types (aqua, windows ,etc). Nor does it resolve the 
problem with missing synchronous communication.

Well, what I was thinking is that whenever one of the interactive windows is closed, it would trigger gnuplot to exit and gnuplot's process would no longer be in the operating system.

Octave would just need to check if its registered process ID still exists. If not, create a new gnuplot process. It's still a bit dodgy though because someone could close the window while Octave is sending data through the pipe. So, there would need to be some way of toggling said feature on and off. I.e., turn the feature off until Octave is done sending data, then enable the feature.

Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]