Re: Cursory analyses of CBM readdir bug (was: [cc65] Re: readdir bug)

From: <silverdr1wfmh.org.pl>
Date: 2013-01-03 23:27:45
On 2013-01-03, at 21:07, Spiro Trikaliotis wrote:

> Why? Your example is no counter-example. ;)

Well.. one could argue about that.. to a degree ;-)

>> 10 open 1,8,2,"textfile,s,r"
>> 15 open 2,8,15
>> 17 close2
> 
> Here, the close is the problem. Closing the command/error channel is a special
> case in the floppy, which interferes with your open file.

Which still qualifies as a bug to me, doesn't it to to you? :-)

> IIRC, closing the command channel results in closing all open channel in
> the floppy (I would have to confirm it, but I am almost sure that this
> was the case).
> 
> Thus, the solution: Never ever close the command channel.

I know the solution. Just it seems to be rather a workaround.. I am used to free resources as soon as I don't need them. Therefore I didn't even suspect that closing one file (no matter what file it is) may interfere with another but yes, now I know :-) Funny enough I never encountered that bug before.

-- 
SD!----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jan 3 23:28:01 2013

This archive was generated by hypermail 2.1.8 : 2013-01-03 23:28:05 CET