Hi,
I've written a plugin (an Xtra, in Macromedia argot) for Director which
allows a Shockwave app to open and play audio CDs. The problem I'm
having is that the original Shockwave app was written in such a way that
it is possible to reinitialize the plugin without first closing any
files that the previous iteration had open. There is no circumstance
where said previous iteration will ever operate on those files again,
but the fact that they are open makes it impossible to unmount the CD.
Can anyone suggest a way to force any such files to be closed?
Cheers,
sd

Signature
This sig property of the Soviet Union
Phil Taylor - 17 Oct 2005 19:22 GMT
> Hi,
>
[quoted text clipped - 7 lines]
>
> Can anyone suggest a way to force any such files to be closed?
I don't know whether this still works on OS X, but under older systems
you could call FSpOpenDF on the file, ignore the error which is
returned, and then call FSClose on the (valid!) RefNum returned by the
first call.
Worth a try.
Phil Taylor
Steven Daedelus - 21 Oct 2005 00:35 GMT
> > Hi,
> >
[quoted text clipped - 16 lines]
>
> Phil Taylor
Thanks, I'll give that a shot.
sd

Signature
This sig property of the Soviet Union