# Microsoft Visual C++ 2017 Issue

**URL:** <https://forum.opencv.org/t/microsoft-visual-c-2017-issue/8230>\
**Category:** C++\
**Tags:** windows, build\
**Created:** [April 2, 2022, 8:00pm UTC](https://forum.opencv.org/t/microsoft-visual-c-2017-issue/8230 "2022-04-02T20:00:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ar15\_m1911](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ar15\_m1911](https://forum.opencv.org/u/ar15_m1911)\
**Post date:** [April 2, 2022, 8:00pm UTC](https://forum.opencv.org/t/microsoft-visual-c-2017-issue/8230/1 "2022-04-02T20:00:08Z")

</div>

Hello,

I have installed the OpenCV v.4.5.5 via Windows EXE. I created a folder on C: named OpenCV. Next I created a new C++ project and modified the following properties:

**DEBUG x64**  
C/C++ → General → Added path to Additional Include Directory  
Linker → General → Added path to Additional Library Directory  
Linker → Input → Added Additional Dependencies value opencv\_world455d.lib

**RELEASE x64**  
C/C++ → General → Added path to Additional Include Directory  
Linker → General → Added path to Additional Library Directory  
Linker → Input → Added Additional Dependencies value opencv\_world455.lib

When I run the code in Solution Configuration = DEBUG (i.e. pulldown) it builds OK and will display a live feed of the camera. It also displays the following error window:

 ![Error Window](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/0/0f88798d05e2eaaf87614b954cd7e71fea026339.jpeg)

Note: If I run the code in Solution Configuration = RELEASE it builds OK and will display a live feed of the camera but the error window is not displayed.

My question is how do I resolve the issues causing the error window when in DEBUG solution configuration?

For your reference below is the code in my program:

```cpp
#include "opencv2\opencv.hpp"
#include "opencv2\highgui.hpp"

int main() 
{
    // Create Video Capturing Object
	cv::VideoCapture video(0);

	// Check That Video Opened
	if (!video.isOpened()) return -1;

	// For Saving The Frame
	cv::Mat frame;

	while (video.read(frame))
	{
        // Display The Frame	
		cv::imshow("Video Feed", frame);

		// For Ending The Video Early
		if (cv::waitKey(25) >= 0)
		{
			break;
		}
	}

	return 0;
}

```

Thanks,

Greg Maxwell
