Can't reload 'C:\Program Files\MATL​AB\R2018b\​bin\win64\​ocv.dll'

When I run the function vision.PointTracker, I get the error message: Can't reload 'C:\Program Files\MATLAB\R2018b\bin\win64\ocv.dll'. I already reinstalled matlab, but that did not solve my problem. I use Matlab R2018b. On my other laptop with R2018a, I do not get the error message. What can I do to solve the error?

7 Kommentare

Basically, we do not know, and you will need to contact Mathworks support.
I have gone through and tagged all of the various "can't reload" postings. You can follow the tag to see other people's experiences. You do not have an old release on a Dell, you are not using Simulink, and that pretty much eliminates all of the publicly known causes (except possibly running out of available open file slots if somehow you had a leak of opening files and not closing them)
same issue arrising for me too...
I am in contact with Mathworks support now. Unfortunately, it is still not working for me. Maybe the solutions they gave me, do work for you:
1) Try the following command: >> rehash toolboxcache
2) If that does not work, try this: >> restoredefaultpath
3) Try to reinstall Matlab
Hope it works for you
was and Sriprabhu: We're looking into this. In the meantime, could either of you please let us know if you have a Dell laptop with the backup and recovery program running, so that we can eliminate that as the potential cause of issues? Thanks!
Amith: if you go through the numerous "can't reload (windows)" you will see a fair number in which Dell were not being used.
The Simulink cases are potentially different from the other cases.
When I did the tagging I had hoped that there had been a solution posted that I had overlooked, or alternatively that there was enough in common in the cases to make a good hypothesis, but I did not find anything useful except a hint that there might be a cause for one of the Simulink cases.
Thanks for your note, Walter! I have not been able to reproduce this on a Windows 7 SP1 machine (which I know is not a Dell laptop). As far as I can tell, this is independent of Simulink, but I agree that there could likely be other root causes of this problem that I'm not aware of, yet.
I have a dell laptop with Backup and Recovery program running and i have faced the same issue

Melden Sie sich an, um zu kommentieren.

Antworten (3)

Amith Kamath
Amith Kamath am 13 Nov. 2018

2 Stimmen

This happens due to the unavailability of the Visual C redistributable DLLs, which can be downloaded from here:
For more details about what changed, see the following:
Upon the installation, restarting MATLAB should resolve this problem. Please report back here if the problem persists in spite of installing this. Thanks!

4 Kommentare

Yes you are right. I installed C redistruable DLLs and its working fine now. i had same problem. thank you so much Amith Kamath
I have similar problem please help me with your email. thank you.
SAHIL SETHI
SAHIL SETHI am 4 Jan. 2020
Bearbeitet: SAHIL SETHI am 4 Jan. 2020
Dear Unner Sajid,
I am facing issues installing C redistruable DLLs.
Can you extend your support to me.
Your efforts will be highly appreciated.
Thanks & regards,
In https://www.mathworks.com/matlabcentral/answers/127222-cannot-launch-simulink-after-upgrade-to-r2013a#comment_782941 I linked to the current Microsoft document on where to download the redistributable appropriate for your operating system and the Visual Studios version in use. What difficulty did you encounter when you installed? Which operating system are you using, and which MATLAB release are you using?

Melden Sie sich an, um zu kommentieren.

shrisha HS
shrisha HS am 5 Nov. 2018
Bearbeitet: shrisha HS am 5 Nov. 2018

0 Stimmen

I am trying to run "Depth Estimation From Stereo Video". Installed Computer Vision tool box on a trial basis. i get " Can't reload 'C:\Program Files\MATLAB\R2018b\bin\win64\ocv.dll'"
error looks like this
Can't reload 'C:\Program Files\MATLAB\R2018b\bin\win64\ocv.dll'
Error in disparity (line 211) disparityMap = ocvDisparitySGBM(I1_u8, I2_u8, optSGBM);
Error in CNN1 (line 27) disparityMap = disparity(frameLeftGray, frameRightGray);
CNN1 is file name Windows 7 64 bit Toshiba satellite C850 laptop, R2018b

3 Kommentare

Unfortunately we do not know what caused this. Mathworks support might have figured it out so you should open a case for this.
shrisha HS
shrisha HS am 10 Nov. 2018
Bearbeitet: shrisha HS am 10 Nov. 2018
i ran "restoredefaultpath" this is what i get
System error: Command executed: "C:\Program Files\MATLAB\R2018b\sys\perl\win32\bin\perl.exe" "C:\Program Files\MATLAB\R2018b\toolbox\local\getphlpaths.pl" "C:\Program Files\MATLAB\R2018b"
I suspect that you will need to reinstall MATLAB.

Melden Sie sich an, um zu kommentieren.

reza moradi
reza moradi am 1 Mär. 2020

0 Stimmen

I have same problem...I install MS Visual Studios Run Time Redistributable 2019 then resolve that
I see this resolve in :

Kategorien

Produkte

Version

R2018b

Gefragt:

was
am 9 Okt. 2018

Beantwortet:

am 1 Mär. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by