The File API currently has no explicit option to close an open file. As a result opened files stay open for an unknown amount of time after simulation ends. A reload of the Flowchart is required to force closing the file (and even that fails at times). Being able to explicitly close a file when finished with it would help. (It would allow adding an event handler to Simulation.Stop to close the file).
A reliable work around would be very welcome... (can something be done with the functions in the System API???)
Add Close to File API
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Add Close to File API
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Add Close to File API
Hi Jac,
Thanks we will take a look for you and I have added it to the list.
If you call the flush function then this should finish all pending transactions on the file. If you then set the file handle to 0 using a calculation icon then this may help to work around the issue.
Thanks we will take a look for you and I have added it to the list.
If you call the flush function then this should finish all pending transactions on the file. If you then set the file handle to 0 using a calculation icon then this may help to work around the issue.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel