Issue loading Simulink in R2014a

7 views (last 30 days)
Andrew Hawkins
Andrew Hawkins on 24 Sep 2015
Commented: Andrew Hawkins on 29 Sep 2015
I can't get Simulink in R2014a to load and get the following error:
Caught "std::exception" Exception message is:
FatalException(unknown)
MATLAB:dispatcher:loadLibrary Can't load 'C:\Program Files\Matlab\R2014a\bin\win64\libmwsimulink.dll': The specified module could not be found.
I've searched and no solution posted seemed to work for my situation.
I am running Win7 Pro 64bit.
The software is provided by Milwaukee School of Engineering on their network installs repository.
I have uninstalled and reinstalled Matlab. Simulink worked once and stopped working again.
I also checked and libmwsimulink.dll is where it is looking for it.
I have Avira as an anti-virus and have also run Matlab without the Real-Time protection enabled. I read somewhere that anti-virus could be an issue but doesn't seem to be the issue.
Any other suggestions?

Answers (4)

Udari Madhushani
Udari Madhushani on 24 Sep 2015
C:\Program Files\Matlab\R2014a\bin\win64\libmwsimulink.dll
Your directory name contains a space (Program Files). In that case Matlab tends to give an error when you try to load simulink. Try renaming that folder without a space or create a separate folder (ex C:\Matlab).
  1 Comment
Andrew Hawkins
Andrew Hawkins on 26 Sep 2015
Edited: Andrew Hawkins on 26 Sep 2015
Unfortunately, the network installer didn't allow me to change the directory in which it installed.
Also, if this were the problem, all of my classmates would be having this issue as well and they are not.
Thank you!

Sign in to comment.


Walter Roberson
Walter Roberson on 24 Sep 2015
When it says that the specified module cannot be found but the file it names is definitely where it should be, then the problem is that a dependency that the dll relies upon is not present. You should use Dependency Walker to track the problem. You might be missing a Microsoft Redistributable.
  1 Comment
Andrew Hawkins
Andrew Hawkins on 26 Sep 2015
I saw the mention of dependancy walker and I've tried it but I don't know what to make of it.
I downloaded it before and ran it.
I found some missing dlls but from what I read, most of them are false positives due to the tool being out of date.
What should I be looking for and, in dependancy walker, do I open Matlab or the dll that is having issues?
Thanks!

Sign in to comment.


Andrew Hawkins
Andrew Hawkins on 26 Sep 2015
Edited: Andrew Hawkins on 26 Sep 2015
So, I ran the Dependancy Walker but I don't know what to make of it.
Then I uninstalled and reinstalled Matlab. Simulink loaded again last night but after I ended up restarting, Simulink no longer works because of the same error as previously mentioned.
I may just buy the student edition but I shouldn't have to and I feel like it can't be that much longer before the issue can be resolved.
Here is a screen capture of running dependency walker with libmwsimulink.dll.
I read that the API-MS ones are most likely false positives.

Andrew Hawkins
Andrew Hawkins on 28 Sep 2015
I finally have Simulink working. After uninstalling it for the 3rd time, I checked the box that says to remove the preferences when uninstalling Matlab. Finally after installing for the 3rd time, I have been able to close Matlab and Simulink still works.
I wish I could find a better solution but this worked for me.
I tried to "rehash" the toolbox cache and path but no success.
  1 Comment
Andrew Hawkins
Andrew Hawkins on 29 Sep 2015
Ok... So never mind what I just said 7 hours ago. I just tried to run Simulink and I get slapped with this:
Caught "std::exception" Exception message is:
FatalException(unknown)
MATLAB:dispatcher:loadLibrary Can't reload 'C:\Program Files\Matlab\R2014a\bin\win64\sl_graphical_classes.dll'.
Caught MathWorks::System::FatalException
Seriously!?!
This is getting ridiculous. I can't be uninstalling and reinstalling Matlab every time I want to use Simulink.
I would submit a support ticket but MATLAB will not let me because I need an license associated and subscription. It will not let me associate out network license, which makes sense.
I would go to our IT support but they have been next to useless unless I wanted my laptop re-imaged.
Anyone else have any more ideas???

Sign in to comment.

Categories

Find more on Install Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!