Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / October 2005



Tip: Looking for answers? Try searching our database.

force files closed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven Daedelus - 16 Oct 2005 19:48 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.