My favorites | Sign in
Project Home Downloads Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 119: opencv sharp runtime dll load exception
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by jzh...@theranos.com, Jul 26, 2012
opencvsharp guru - 

What steps will reproduce the problem?

1.
Download Sample-2.4-20120708.zip  and OpenCvSharp-2.4-x64-20120708.zip 

2.
compile and run Sample-2.4-20120708

3. runtime exception 

@  using (IplImage img = new IplImage(Const.ImageYalta, LoadMode.Color))


An exception has occured because of p/invoke, Please check the following
1. OpenCV DLL files exist in the same directory as the executable file
2. Visual C++ Redistributable Package has been installed
3. the target platform (x86/64) of OpenCV dll files and opencvsharp is the same as your projects


Runtime evn

1.  Windows 7 64 bits. I have checked  - OpenCV DLL files (opencv_core240.dll, opencv_imgproc240.dll etc ) do exist in the same directory as the executable file

2. Visual studio 2010 with Microsoft Visual C++ 2010 Redistributable  installed 

openCV DLLs  and OpenCVsharp dlls etc all are from 2 download zip

Please refer attached screenshot 

Thanks a lot
jzhang


Aug 9, 2012
#3 ericsh...@gmail.com
Do you have tbb library set up in your environment? I had the exact same problem before and the problem was resolved when tbb is set up.
Sep 25, 2012
#4 saskia.g...@gmail.com
Make sure tbb.dll is also in the path, as opencv_core240.dll has a dependency on this. You can find tbb.dll under opencv/build/common/tbb.

Sign in to add a comment

Powered by Google Project Hosting