MATLAB Answers

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

Asked by was

### was (view profile)

on 9 Oct 2018
Latest activity Commented on by Uner Sajid

### Uner Sajid (view profile)

on 6 May 2019
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?

Walter Roberson

### Walter Roberson (view profile)

on 12 Oct 2018
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.
Amith Kamath

### Amith Kamath (view profile)

on 15 Oct 2018
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.
jeyanthi selvaraj

### jeyanthi selvaraj (view profile)

on 20 Feb 2019
I have a dell laptop with Backup and Recovery program running and i have faced the same issue

Sign in to comment.

R2018b

## 2 Answers

### Amith Kamath (view profile)

Answer by Amith Kamath

### Amith Kamath (view profile)

on 13 Nov 2018

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!

Uner Sajid

### Uner Sajid (view profile)

on 6 May 2019
Yes you are right. I installed C redistruable DLLs and its working fine now. i had same problem. thank you so much Amith Kamath

Sign in to comment.

### shrisha HS (view profile)

Answer by shrisha HS

### shrisha HS (view profile)

on 5 Nov 2018
Edited by shrisha HS

### shrisha HS (view profile)

on 5 Nov 2018

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

Walter Roberson

### Walter Roberson (view profile)

on 5 Nov 2018
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 (view profile)

on 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"
Walter Roberson

### Walter Roberson (view profile)

on 10 Nov 2018
I suspect that you will need to reinstall MATLAB.

Sign in to comment.