Standalone application open file cause file is closed.failbit is set

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 ok now I get what failbit set means. When I check the path (C:\Program Files\MATLAB\MATLAB Runtime\v901\mcr\toolbox\matlab\uitools\+matlab\+ui\+internal) of PositionUtils.m I see that in the folder is PositionUtils.p
Does it mean anything?

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products

Asked:

on 22 Mar 2018

Commented:

on 22 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!