An error caused by imread() function in AppDesigner

I'm using AppDesigner in MATLAB, and whenever I use imread() function inside a button this error message displays:
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.

4 件のコメント

Walter Roberson
Walter Roberson 2020 年 2 月 2 日
Use the debugger to put a breakpoint on the imread line, and run. When the debugger stops, Step that line so that you can see the entire error message.
Lamya Mohammad
Lamya Mohammad 2020 年 2 月 2 日
編集済み: Lamya Mohammad 2020 年 2 月 2 日
This is what I got:
Caught "std::exception" Exception message is:
Bundle#166 start failed: Loading C:\Program Files\MATLAB\R2019b\bin\win64\builtins\matlab_toolbox_iofun_builtins\mwmlxcodereader_builtinimpl.dllfailed with error: The specified module could not be found.
Walter Roberson
Walter Roberson 2020 年 2 月 2 日
One of the DLLs is missing that is needed by
C:\Program Files\MATLAB\R2019b\bin\win64\builtins\matlab_toolbox_iofun_builtins\mwmlxcodereader_builtinimpl.dll
You might be able to figure out which one by using one of the tools mentioned at https://www.raymond.cc/blog/check-what-dll-or-ocx-dependency-files-is-needed-for-a-software/
Chances are that you will have to install either Visual Studios Runtime, or else reinstall part of MATLAB.
Lamya Mohammad
Lamya Mohammad 2020 年 2 月 2 日
Thank you! I restarted my computer and the error is disappeared :) I'll try what you wrote if I get this error again

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

回答 (0 件)

質問済み:

2020 年 2 月 2 日

コメント済み:

2020 年 2 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by