std::exception error help

185 ビュー (過去 30 日間)
Alex
Alex 2015 年 3 月 18 日
コメント済み: nil co 2018 年 12 月 15 日
I keep getting the below error in my script
Caught "std::exception" Exception message is:
Message Catalog MATLAB:services was not loaded from the file. Please check file location, format or contents
I have no idea what this error means. Please help

採用された回答

Alex
Alex 2015 年 3 月 18 日
I figured it out. I wasn't closing the files I had open from the directory and I ran out of file identifiers.
use this
fclose('all')
  2 件のコメント
Guillaume
Guillaume 2015 年 3 月 18 日
Alex, it would be very helpful if you could give more details on how to trigger this bug, so I can get in touch with matlab and (maybe) get them to issue a proper error message.
nil co
nil co 2018 年 12 月 15 日
thank you so much

サインインしてコメントする。

その他の回答 (2 件)

Image Analyst
Image Analyst 2015 年 3 月 18 日
What does this say
which -all std
Mine looks like this:
>> which -all std
C:\Program Files\MATLAB\R2014b\toolbox\matlab\datafun\std.m
C:\Program Files\MATLAB\R2014b\toolbox\matlab\timeseries\@timeseries\std.m % timeseries method
  1 件のコメント
Guillaume
Guillaume 2015 年 3 月 18 日
The error has nothing to do with a matlab function called std. It's matlab leaking a C++ exception. You can trigger a similar error with a simple dir command (still not fixed in R2015a).
The error message is completely unhelpful as it does not tell you which function is actually responsible for the error. Futhermore, it's not even possible to catch the error ( try ... catch doesn't work) nor break into the debugger when it occurs ( dbstop if error doesn't trip).

サインインしてコメントする。


Guillaume
Guillaume 2015 年 3 月 18 日
Most likely, you've come across a bug in matlab. Unfortunately, the error message is generated by some underlying C++ code and has not been dealt with properly by matlab, so it's difficult to tell you what caused it.
If you can, post your script. Otherwise, execute your script one line at a time and find which line actually causes the error to occur and tell us what's on that line.
The error message is completely unhelpful and matlab shouldn't leak C++ error to the user, since there's nothing they can do about.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by