Calling the FileStream close() method should be sufficient. Are you getting the close event?
(There is a bug involving NetConnection keeping an unnecessary file lock on .FLV files that are played, but it sounds like you are writing an XML file here, not an FLV file.)
CORRECTION TO FIRST POST - This is NOT a Windows only issue, Mac also.
Thanks for responding.
I am getting the close event. The flv is finished playing and, you are correct, I'm writing an XML document. The flv is on a server (this is a tool to generate closed captioning)
I tried to recreate the error in a seperate file and couldn't, so I'm thinking it's not Actionscript's fault but mine.
I'm getting nowhere with this issue. The latest suggestion was to add system.gc() afetr close(), that didn't help. Anyone have a suggestion?
Use the profiler and check what objects are in memory. Open and close the file a few times without saving and see if any objects refuse to disappear. Or take a snapshop before loading and after unloading, then note the differences.