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: Shai Ayal
Subject: Re: wait_for_file ?? [GL2PS error: Bad file pointer]
Date: Sun, 12 Sep 2010 22:41:13 +0300



On Sun, Sep 12, 2010 at 9:50 PM, Michael D Godfrey <address@hidden> wrote:
On 09/12/2010 11:22 AM, Shai Ayal wrote:

I do still recommend clearing the fid after fclose.   This would have caused my fclose
to fail and would have resolved the question of whether it was needed.

I don't know how to do that -- I use a local copy of the fid, and I see no way to change the value of fid in the calling function.

Shai 
Oh.  I misunderstood.  I thought that Ben's code was passing you the fid.
I thought that because his code reads:
	  fid = fopen ("test.eps", "wb");
	  drawnow ("eps", sprintf ("%d", fid));

What happens to the fid in the drawnow call?
The fid is passed by value -- it's even passed by it's string value!. The place where I use fclose, in glp-renderer::draw only has the value of fid.


reply via email to

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