octave-maintainers
[Top][All Lists]
Advanced

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

Re: wait_for_file ?? [GL2PS error: Bad file pointer]


From: Ben Abbott
Subject: Re: wait_for_file ?? [GL2PS error: Bad file pointer]
Date: Sun, 12 Sep 2010 17:27:23 -0400

On Sep 12, 2010, at 4:13 PM, Michael D Godfrey wrote:

> On 09/12/2010 12:41 PM, Shai Ayal wrote:
>> The fid is passed by value -- it's even passed by it's string value!.
> Ah. Interesting.  More interesting is the fact that doing an fclose(fid) 
> immediately
> after the drawnow has no negative effect.  It is probable that drawnow has not
> yet written to the file by the time of the return.
> 
> All this adds up to: time to switch to pipes.  I think that Ben is doing that 
> now.
> 
> Michael 

I don't understand what is happening, but pipes don't fix the problem (for me).

I posted a changeset that relies on pipes for GL2PS. For Gnuplot pipes are used 
after the Gnuplot has produced its output.

        
https://www-old.cae.wisc.edu/pipermail/octave-maintainers/2010-September/016994.html

I'd appreciate having others look it over and comment.

Ben



reply via email to

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