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: Michael D Godfrey
Subject: Re: wait_for_file ?? [GL2PS error: Bad file pointer]
Date: Sun, 12 Sep 2010 11:50:15 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Thunderbird/3.1.3

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?
If the fid is local and is about to disappear anyhow, obviously it does not matter.

Michael

reply via email to

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