Page 1 of 1

Add Close to File API

Posted: Sun Sep 14, 2014 10:17 pm
by kersing
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???)

Re: Add Close to File API

Posted: Mon Sep 15, 2014 9:59 am
by Benj
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.