VS2010 problem with highgui.dll (Bug #286)


Added by Thomas A almost 15 years ago. Updated over 12 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:highgui-video
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

I compiled opencv trunk with VS2010 and W7 32Bit. I use cmake 2.1 and Visual Studio 10 native compiler.
Compiling with no error but when I start my opencv application it crashed on cvCreateFileCapture()
If I compile the trunk with VS2008 there are no problems with the dll's also the size of the dll's is different: highgui210.dll VS2008 763kb VS2010 665kb
With my W7 x64 VS2010 cmake 2.1 VS 10 x64 native compiler and IPP/TPP there is no problem.


Associated revisions

Revision a99799ca
Added by Andrey Kamaev about 12 years ago

Merge pull request #286 from taka-no-me:tweak_phase_test_threshold

History

Updated by Vadim Pisarevsky almost 15 years ago

thanks! fixed in r3019

  • Status deleted (Open)

Updated by Vadim Pisarevsky almost 15 years ago

  • Status set to Done
  • (deleted custom field) set to fixed

Updated by Thomas A almost 15 years ago

fixed in r3029

Updated by Thomas A almost 15 years ago

If you have the time maybe you can short explain why the
"extern "C" { +declspec(dllexport) unsigned int +lc_codepage = 0; } "
dll export magic makes the version switch obsolete

Updated by anonymous - over 14 years ago

this bug still exists

Updated by anonymous - over 14 years ago

this bug still exists

Updated by anonymous - over 14 years ago

The bug can not be reproduced with the latest version from trunk: https://code.ros.org/svn/opencv/trunk

I ran laplace sample built in Win32 configuration with VS2010 on Windows 7, ran it on various videos from https://code.ros.org/svn/opencv/trunk/opencv_extra/testdata/python/videos. It works well. In order to reproduce the problem I need a sample video file that causes the crash. You can use VirtualDub to extract a small fragment from your video, if it's too big. Or send me the link to the video from where I can download it.

Updated by anonymous - over 14 years ago

I am using OpenCV2.1 with VSExpress2010 on Windows 7 - 32 bit.

I first tried the pre-built libraries, all the C-style code worked well, but none of the C++ code did (would just crash whenever I called one of the functions that takes a string as an argument, e.g. imread, namedWindow etc.)

I wanted to use the C++ code, so I re-built OpenCV from source (from the download page) according to instructions on http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010_CMake, it all built without errors (except from the debug version of the python bindings). The C++ code such as imread and namedWindow started to work with the new dll's. However, VideoCapture::open(string) which calls cvCreateFileCapture() crashes, and now cvCreateFileCapture also does not work (it used to with the pre-built binaries). It does not return a NULL pointer (which I check for), it just crashes before returning anything.

Updated by anonymous - over 14 years ago

I posted the previous message - I have the same exact problem on VSExpress2010 on a Windows XP machine with OpenCV2.1. However, the crash does not occur while debugging (have checked with both VS2010 and Code::Blocks). Both the Release and Debug versions crash when run from the command line, but if you launch either with the debugger, they work fine - so it is not a problem with the compiler options. Could be a threading issue? I cannot be the only person with this problem since the same exact thing happens with two different machines.

Updated by Johnson - over 14 years ago

I also met the same issue on my vs2010+opencv2.1, I found only the release build version has this issue, the debug version works well. And if I built release version of my test app linked with highui210d.lib, it will not meet this issue. So looks that debug version of highui lib has some issue.

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-video

Also available in: Atom PDF