Hi,
What platform are you running on ? If the platform is Windows, then this is
most probably happening because Windows thinks that the file is still open
under FMS. What happens if you wait for a while before trying to rename the
file. Does that work ?
You can also verify whehter Windows thinks that FMS still has the file open by
trying the following :
1) If you haven't got it installed yet, install process explorer. You can find
it at :
http://technet.microsoft.com/en-us/s.../bb896653.aspx
2) Search for your file name. Process explorer will tell you which process is
still using the file.
thanks,
Mo
[q]
Originally posted by: dhalbert
I have a simple server-side app that creates a Stream, creates a
NetConnection, and then plays a live stream from that NetConnection. I record
the resulting stream into a file, say "recordstream.flv"
When I get an UnpublishNotify, I stop recording. When I see
NetStream.Record.Stop, I create a File object that points to recordstream.flv,
and try to rename it to a different filename with File.renameTo().
This worked in FMS2, but not in FMS3. In FMS3, I get an error that the
renameTo() failed. Interestingly, copyTo() the same new filename works, so it
is not a directory protection issue or something like that. It appears that
FMS3 is forbidding me from fiddling with the file; File.canRead returns false
on the file. Is there any way to get FMS3 to release the file? Or should I give
up and just use copyTo()?[/q]