Standalone application open file cause file is closed.failbit is set
Show older comments
Using matlab 2016 I have build a standalone exe application. After installing I tried to run the program. The issue is when I am calling C:\Program Files (x86)\MATLAB\R2015b\toolbox\images\imuitools\cpselect.m in my program I got the errors:
Open file failed because file 'C:\Program Files\MATLAB\MATLAB Runtime\v901\mcr\toolbox\matlab\uitools\+matlab\+ui\+internal\PositionUtils.m' has invalid content. Details: 'file is closed.failbit is set.'
Open file failed because file 'C:\Program Files\MATLAB\MATLAB Runtime\v901\mcr\toolbox\matlab\polyfun\interp1.m' has invalid content. Details: 'file is closed.failbit is set.'
Open file failed because file 'C:\Program Files\MATLAB\MATLAB Runtime\v901\mcr\toolbox\matlab\timefun\datestr.m' has invalid content. Details: 'file is closed.failbit is set.'
Open file failed because file 'C:\Program Files\MATLAB\MATLAB Runtime\v901\mcr\toolbox\matlab\timefun\private\formatdate.m' has invalid content. Details: 'file is closed.failbit is set.'
The script is running otherwise without issue when I am running it in Matlab editor as a m file.
2 Comments
Walter Roberson
on 22 Mar 2018
Not an answer, but some technical background at https://stackoverflow.com/questions/6781545/why-is-failbit-set-when-eof-is-found-on-read
An Tran
on 22 Mar 2018
Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!